Spaces:
Sleeping
Sleeping
Delete Dockerfile
Browse files- Dockerfile +0 -24
Dockerfile
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
# For more information, please refer to https://aka.ms/vscode-docker-python
|
2 |
-
FROM python:3.10-slim
|
3 |
-
|
4 |
-
EXPOSE 1024
|
5 |
-
# Keeps Python from generating .pyc files in the container
|
6 |
-
ENV PYTHONDONTWRITEBYTECODE=1
|
7 |
-
|
8 |
-
# Turns off buffering for easier container logging
|
9 |
-
ENV PYTHONUNBUFFERED=1
|
10 |
-
|
11 |
-
# Install pip requirements
|
12 |
-
COPY requirements.txt .
|
13 |
-
RUN python -m pip install -r requirements.txt
|
14 |
-
|
15 |
-
WORKDIR /app
|
16 |
-
COPY . /app
|
17 |
-
|
18 |
-
# Creates a non-root user with an explicit UID and adds permission to access the /app folder
|
19 |
-
# For more info, please refer to https://aka.ms/vscode-docker-python-configure-containers
|
20 |
-
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /app
|
21 |
-
USER appuser
|
22 |
-
|
23 |
-
# During debugging, this entry point will be overridden. For more information, please refer to https://aka.ms/vscode-docker-python-debug
|
24 |
-
CMD ["python", "hello.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|