AppFlowy/backend/Dockerfile

11 lines
255 B
Docker
Raw Normal View History

2021-12-02 07:58:52 +00:00
FROM rust:1.56.1
2021-08-21 15:19:57 +00:00
WORKDIR /app
COPY . .
ENV SQLX_OFFLINE true
2021-12-02 07:58:52 +00:00
WORKDIR /app/backend
RUN RUSTFLAGS="-C opt-level=2" cargo build --release --bin backend
RUN cp target/release/backend backend
2021-12-01 08:44:58 +00:00
ENV APP_ENVIRONMENT production
2021-12-02 07:58:52 +00:00
EXPOSE 8000
ENTRYPOINT ["./backend"]