Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +0 -16
Dockerfile
CHANGED
|
@@ -13,22 +13,6 @@ RUN git clone https://github.com/pvanand07/flask-web-server-with-auth.git .
|
|
| 13 |
# Install the Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
# Set up a new user named "user" with user ID 1000
|
| 17 |
-
RUN useradd -m -u 1000 user
|
| 18 |
-
|
| 19 |
-
# Switch to the "user" user
|
| 20 |
-
USER user
|
| 21 |
-
|
| 22 |
-
# Set home to the user's home directory
|
| 23 |
-
ENV HOME=/home/user \
|
| 24 |
-
PATH=/home/user/.local/bin:$PATH
|
| 25 |
-
|
| 26 |
-
# Set the working directory to the user's home directory
|
| 27 |
-
WORKDIR $HOME/app
|
| 28 |
-
|
| 29 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 30 |
-
COPY --chown=user . $HOME/app
|
| 31 |
-
|
| 32 |
# Expose the port on which the Flask application will run
|
| 33 |
EXPOSE 5000
|
| 34 |
|
|
|
|
| 13 |
# Install the Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
# Expose the port on which the Flask application will run
|
| 17 |
EXPOSE 5000
|
| 18 |
|