Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -15,16 +15,17 @@ COPY requirements.txt /app/requirements.txt
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Create a non-root user and set permissions
|
| 19 |
RUN useradd -m -u 1000 user
|
| 20 |
USER user
|
| 21 |
ENV HOME /home/user
|
| 22 |
ENV PATH $HOME/.local/bin:$PATH
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
WORKDIR $HOME/app
|
| 27 |
-
COPY . /app
|
| 28 |
|
| 29 |
# Verify GLPK installation
|
| 30 |
RUN glpsol --version
|
|
|
|
| 15 |
# Install Python dependencies
|
| 16 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
| 17 |
|
| 18 |
+
# Copy the rest of the application code
|
| 19 |
+
COPY . /app
|
| 20 |
+
|
| 21 |
# Create a non-root user and set permissions
|
| 22 |
RUN useradd -m -u 1000 user
|
| 23 |
USER user
|
| 24 |
ENV HOME /home/user
|
| 25 |
ENV PATH $HOME/.local/bin:$PATH
|
| 26 |
|
| 27 |
+
# Set the working directory for the user
|
| 28 |
+
WORKDIR /app
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Verify GLPK installation
|
| 31 |
RUN glpsol --version
|