Skip to content

Commit c3f8df5

Browse files
committed
Small fix
1 parent 796f29a commit c3f8df5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ RUN rm -f /etc/nginx/sites-enabled/default /etc/nginx/sites-available/default /e
7777
&& chown -R 1001:0 /var/cache/nginx /var/log/nginx /var/lib/nginx /run/nginx.pid /etc/nginx \
7878
&& chmod -R 755 /var/lib/nginx /var/log/nginx
7979

80+
# Install pm2 globally
81+
RUN npm install -g pm2
82+
8083
# Copy ALL source code (backend + frontend source, but .next is overwritten)
8184
COPY . /app/
8285

@@ -87,9 +90,6 @@ COPY --from=frontend_deps /app/front_end/node_modules /app/front_end/node_module
8790
# Copy pre-built frontend (overwrites the source-only front_end/.next)
8891
COPY --from=frontend_build /app/front_end/.next /app/front_end/.next
8992

90-
# Install pm2 globally
91-
RUN npm install -g pm2
92-
9393
# Collect Django static files
9494
RUN . venv/bin/activate && ./manage.py collectstatic --noinput
9595

0 commit comments

Comments
 (0)