Add assets and migrations to dockerfile (#851)
This commit is contained in:
1 parent
7b00003958
commit
d1a09d0b95
1 file changed
+4
@@ -3,6 +3,7 @@ ENV PKG_CONFIG_ALLOW_CROSS=1
|
||||
|
||||
WORKDIR /usr/src/labrinth
|
||||
COPY . .
|
||||
ARG SQLX_OFFLINE=true
|
||||
RUN cargo build --release
|
||||
|
||||
|
||||
@@ -16,6 +17,9 @@ RUN apt-get update \
|
||||
RUN update-ca-certificates
|
||||
|
||||
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
|
||||
|
||||
CMD /labrinth/labrinth
|
||||
Reference in new issue
Block a user