go-blocklist/docker/Dockerfile
Martin Donnelly 111bb88d18 Init
2024-09-02 14:08:28 +01:00

21 lines
417 B
Docker

# FROM debian:12-slim
FROM alpine:latest
WORKDIR /app
RUN mkdir -p /app/downloads /app/public
COPY ./go-blocklist /app/
# 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/go-blocklist
EXPOSE 8989
CMD [ "/app/go-blocklist"]