feat(af-cloud): expose container port via env var

This commit is contained in:
Zahin Mohammad 2024-09-04 11:05:06 -04:00
parent fa5f548c95
commit 9fc15827f8
1 changed files with 6 additions and 0 deletions

View File

@ -40,4 +40,10 @@ RUN apt-get update -y \
COPY --from=builder /app/target/release/appflowy_cloud /usr/local/bin/appflowy_cloud
ENV APP_ENVIRONMENT production
ENV RUST_BACKTRACE 1
ARG APPFLOWY_APPLICATION_PORT
ARG PORT
ENV PORT=${APPFLOWY_APPLICATION_PORT:-${PORT:-8000}}
EXPOSE $PORT
CMD ["appflowy_cloud"]