1
0

Update Dockerfile (#55)

This commit is contained in:
Redblueflame
2020-08-28 20:24:43 +02:00
committed by GitHub
parent 38b7d9724e
commit 7b1710ee63

View File

@@ -21,6 +21,12 @@ RUN cargo build --release
FROM gcr.io/distroless/cc-debian10
COPY --from=build /usr/src/labrinth/target/release/labrinth /usr/local/bin/labrinth
RUN mkdir /opt/labrinth
COPY --from=build /usr/src/labrinth/target/release/labrinth /opt/labrinth/labrinth
COPY --from=build /usr/src/labrinth/target/release/migrations/* /opt/labrinth/migrations/
WORKDIR /opt/labrinth
CMD ["labrinth"]
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.2.1/wait /wait
RUN chmod +x /wait
CMD /wait && /opt/labrinth