You've already forked AstralRinth
forked from didirus/AstralRinth
Add assets and migrations to dockerfile (#851)
This commit is contained in:
@@ -3,6 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
|
|||||||
|
|
||||||
WORKDIR /usr/src/labrinth
|
WORKDIR /usr/src/labrinth
|
||||||
COPY . .
|
COPY . .
|
||||||
|
ARG SQLX_OFFLINE=true
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
|
|
||||||
@@ -16,6 +17,9 @@ RUN apt-get update \
|
|||||||
RUN update-ca-certificates
|
RUN update-ca-certificates
|
||||||
|
|
||||||
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
||||||
|
COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/
|
||||||
|
COPY --from=build /usr/src/labrinth/assets /labrinth/assets
|
||||||
|
|
||||||
WORKDIR /labrinth
|
WORKDIR /labrinth
|
||||||
|
|
||||||
CMD /labrinth/labrinth
|
CMD /labrinth/labrinth
|
||||||
Reference in New Issue
Block a user