You've already forked AstralRinth
forked from didirus/AstralRinth
Update Dockerfile (#55)
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -21,6 +21,12 @@ RUN cargo build --release
|
|||||||
|
|
||||||
|
|
||||||
FROM gcr.io/distroless/cc-debian10
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user