Spaces:
Running
Running
BinaryONe
commited on
Commit
·
151fb06
1
Parent(s):
f54c7d5
Nginx Changes
Browse files- Dockerfile +10 -1
Dockerfile
CHANGED
@@ -1,11 +1,20 @@
|
|
1 |
FROM alpine:latest
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
# Install system dependencies, including shadow-utils for adduser
|
4 |
RUN apk update && apk upgrade && \
|
5 |
apk add --no-cache nginx python3 py3-pip build-base libffi-dev openssl-dev shadow
|
6 |
|
7 |
# Create a non-root user and group (Corrected and Simplified)
|
8 |
-
RUN addgroup appgroup && adduser -G appgroup -s /bin/sh appuser
|
9 |
|
10 |
# Set working directory for the application
|
11 |
WORKDIR /app
|
|
|
1 |
FROM alpine:latest
|
2 |
|
3 |
+
|
4 |
+
|
5 |
+
|
6 |
+
# Create a group and user
|
7 |
+
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
|
8 |
+
|
9 |
+
# Tell docker that all future commands should run as the appuser user
|
10 |
+
USER appuser
|
11 |
+
|
12 |
# Install system dependencies, including shadow-utils for adduser
|
13 |
RUN apk update && apk upgrade && \
|
14 |
apk add --no-cache nginx python3 py3-pip build-base libffi-dev openssl-dev shadow
|
15 |
|
16 |
# Create a non-root user and group (Corrected and Simplified)
|
17 |
+
#RUN addgroup appgroup && adduser -G appgroup -s /bin/sh appuser
|
18 |
|
19 |
# Set working directory for the application
|
20 |
WORKDIR /app
|