Fix docker image not compatible with non static compilation
This commit is contained in:
parent
1c1219e77e
commit
c0f0e03ff3
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,9 @@ COPY polyculeconnect ./
|
|||
RUN make build
|
||||
|
||||
# Replace with from scratch later on
|
||||
FROM --platform=$TARGETPLATFORM alpine:latest
|
||||
FROM --platform=$TARGETPLATFORM debian:latest
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -qq install ca-certificates
|
||||
WORKDIR /root
|
||||
COPY --from=builder go/src/git.faercol.me/polyculeconnect/build/polyculeconnect ./
|
||||
ADD polyculeconnect/robots.txt /root/
|
||||
|
@ -16,4 +18,4 @@ ADD polyculeconnect/templates /root/templates/
|
|||
VOLUME [ "/config" ]
|
||||
|
||||
ENTRYPOINT [ "./polyculeconnect" ]
|
||||
CMD [ "-config", "/config/config.json" ]
|
||||
CMD [ "serve", "--config", "/config/config.json" ]
|
||||
|
|
Loading…
Reference in a new issue