Skip to content

Commit ecfb5ce

Browse files
committed
updating dockerfile
1 parent 775cb16 commit ecfb5ce

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
5050
# Stage 2: Development stage for the project
5151
FROM dep-stage AS dev-stage
5252

53+
ARG VALIS_ENV="production"
54+
5355
# Copy the main project files over and install
5456
COPY ./ ./
5557
RUN --mount=type=cache,target=/root/.cache/uv \
@@ -65,15 +67,15 @@ ENV VALIS_SOCKET_DIR='/tmp/webapp'
6567
ENV VALIS_LOGS_DIR='/tmp/webapp'
6668
ENV VALIS_ALLOW_ORIGIN="https://data.sdss5.org/zora/"
6769
ENV VALIS_DB_REMOTE=True
68-
ENV VALIS_ENV="production"
70+
ENV VALIS_ENV=$VALIS_ENV
6971
ENV SOLARA_CHECK_HOOKS="off"
7072

7173
# Stage 3: Build stage (inherits from dev-stage)
7274
FROM dev-stage AS build-stage
7375

7476
# Set a label
7577
LABEL org.opencontainers.image.source=https://github.com/sdss/valis
76-
LABEL org.opencontainers.image.description="valis production image"
78+
LABEL org.opencontainers.image.description="valis ${VALIS_ENV} image"
7779

7880
# Expose the port
7981
EXPOSE 8000

0 commit comments

Comments
 (0)