Skip to content

Commit be8378d

Browse files
committed
Add default environment variables to Dockerfile
1 parent b1bbb30 commit be8378d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ COPY --from=builder /app/main .
4040
# Copy .env file if it exists
4141
COPY --from=builder /app/.env* ./
4242

43+
# Set default environment variables
44+
ENV NODE_ENV=production \
45+
CLAMD_IP=clamd \
46+
APP_FORM_KEY=FILES \
47+
APP_PORT=3000 \
48+
APP_MAX_FILE_SIZE=26214400 \
49+
APP_MAX_FILES_NUMBER=4 \
50+
CLAMD_PORT=3310 \
51+
CLAMD_TIMEOUT=60000 \
52+
APP_MORGAN_LOG_FORMAT=combined \
53+
REDIS_URL=redis://redis:6379 \
54+
JOB_EXPIRATION=3600
55+
4356
# Create non-root user
4457
RUN addgroup -g 1001 -S appuser && \
4558
adduser -S -D -H -u 1001 -h /root -s /sbin/nologin -G appuser appuser

0 commit comments

Comments
 (0)