BinaryONe commited on
Commit
869bfd6
·
1 Parent(s): ea542b2

Nginx Changes

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -21,14 +21,15 @@ RUN pip3 install --no-cache-dir --upgrade -r requirements.txt
21
  # Copy the rest of the application code after installing dependencies for better cache
22
  COPY . /app
23
 
24
- #FROM nginx:alpine
25
 
26
- #COPY --from=builder /app /app
27
 
28
- #COPY nginx.conf /etc/nginx/conf.d/default.conf
29
 
30
  # Create a non-root user and group
31
- RUN addgroup -S appgroup && adduser -S appuser -G appgroup
 
32
 
33
  WORKDIR /app
34
 
 
21
  # Copy the rest of the application code after installing dependencies for better cache
22
  COPY . /app
23
 
24
+ FROM nginx:alpine
25
 
26
+ COPY --from=builder /app /app
27
 
28
+ COPY nginx.conf /etc/nginx/conf.d/default.conf
29
 
30
  # Create a non-root user and group
31
+ #RUN addgroup -S appgroup && adduser -S appuser -G appgroup
32
+ RUN addgroup appgroup && adduser -G appgroup appuser
33
 
34
  WORKDIR /app
35