Spaces:
Sleeping
Sleeping
Commit
·
017a89a
1
Parent(s):
18e8ec4
Update Dockerfile
Browse files- Dockerfile +2 -15
Dockerfile
CHANGED
|
@@ -1,18 +1,5 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
# Set the working directory to /app
|
| 5 |
-
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
# Copy the current directory contents into the container at /app
|
| 8 |
-
COPY . /app
|
| 9 |
-
|
| 10 |
-
# Install gosu (adjust the package manager based on your base image)
|
| 11 |
-
RUN apt-get update && apt-get install -y gosu && rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
# Set the entrypoint script as executable
|
| 14 |
-
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
| 15 |
-
RUN chmod +x /usr/local/bin/entrypoint.sh
|
| 16 |
|
| 17 |
# Set appropriate permissions for the application directory
|
| 18 |
RUN chown -R appuser:appuser /app && chmod -R 755 /app
|
|
|
|
| 1 |
+
# Create the appuser
|
| 2 |
+
RUN adduser --disabled-password --gecos '' appuser
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# Set appropriate permissions for the application directory
|
| 5 |
RUN chown -R appuser:appuser /app && chmod -R 755 /app
|