File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
66 FLASK_ENV=production
77
88RUN groupadd --gid 1000 appuser && \
9- useradd --uid 1000 --gid appuser --shell /
9+ useradd --uid 1000 --gid appuser --no-create-home -- shell /usr/sbin/nologin appuser
1010WORKDIR /app
1111RUN apt-get update && apt-get install -y \
1212 curl \
@@ -18,8 +18,6 @@ RUN pip install --no-cache-dir --upgrade pip && \
1818COPY . .
1919RUN mkdir -p uploads logs && \
2020 chown -R appuser:appuser /app
21- COPY tes_instance_locations.json .
22- COPY .tes_instances .
2321USER appuser
2422VOLUME ["/app/uploads"]
2523EXPOSE 8000
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ services:
22 tes-dashboard-backend-service :
33 build :
44 context : ./backend
5- dockerfile : Dockerfile
5+ dockerfile : Dockerfile.production
66 container_name : tes-dashboard-backend
77 environment :
88 PORT : 8000
You can’t perform that action at this time.
0 commit comments