errorlogger/docker/Dockerfile
Martin Donnelly d62dbaeb89 Init
2023-12-22 09:50:59 +00:00

22 lines
459 B
Docker

# FROM debian:12-slim
FROM alpine:latest
WORKDIR /app
RUN mkdir -p /app/public /app/views
COPY ./errorlogger /app/
COPY ./public /app/public
COPY ./views /app/views
# Need the following to get a go app to run inside a docker container
# as per: https://www.fairlyusefulcode.co.uk/post/go-alpine-linux/
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN chmod +x /app/errorlogger
EXPOSE 2410
CMD [ "/app/errorlogger"]