go-pb-jubilee/docker/Dockerfile

31 lines
749 B
Docker
Raw Normal View History

FROM debian:12-slim
# FROM alpine:latest
WORKDIR /app
RUN mkdir -p /app/dist
COPY ./go-pb-jubilee ./docker/start.sh /app/
COPY ./pb_data /app/pb_data
COPY ./pb_public /app/pb_public
RUN apt-get update && apt-get install -y ca-certificates
# 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/ -- DEAD!!!
# RUN apk upgrade musl
# RUN apk add gcompat
# RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
# RUN ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
RUN chmod +x /app/go-pb-jubilee
RUN chmod +x /app/start.sh
EXPOSE 8090
CMD [ "/app/go-pb-jubilee", "serve", "--http=0.0.0.0:8090"]
# CMD [ "/app/start.sh"]