Spaces:
Build error
Build error
Commit
·
a9ad7ed
1
Parent(s):
8d6d690
update dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
|
@@ -7,11 +7,10 @@ WORKDIR /code
|
|
| 7 |
COPY Pipfile Pipfile.lock ./
|
| 8 |
|
| 9 |
# Python PIP Upgrade & Install Dependencies
|
| 10 |
-
RUN pip install --no-cache-dir
|
| 11 |
-
&& pip install --no-cache-dir pipenv
|
| 12 |
|
| 13 |
# Install Python Dependencies
|
| 14 |
-
RUN pipenv install
|
| 15 |
|
| 16 |
# Set up a new user named "user" with user ID 1000
|
| 17 |
RUN useradd -m -u 1000 alaye
|
|
@@ -41,4 +40,7 @@ COPY --chown=alaye . $HOME/alaroye
|
|
| 41 |
EXPOSE 7860
|
| 42 |
|
| 43 |
# Run entrypoint
|
|
|
|
|
|
|
|
|
|
| 44 |
CMD [ "python", "src/web.py"]
|
|
|
|
| 7 |
COPY Pipfile Pipfile.lock ./
|
| 8 |
|
| 9 |
# Python PIP Upgrade & Install Dependencies
|
| 10 |
+
RUN pip install --no-cache-dir pipenv
|
|
|
|
| 11 |
|
| 12 |
# Install Python Dependencies
|
| 13 |
+
RUN pipenv install -d
|
| 14 |
|
| 15 |
# Set up a new user named "user" with user ID 1000
|
| 16 |
RUN useradd -m -u 1000 alaye
|
|
|
|
| 40 |
EXPOSE 7860
|
| 41 |
|
| 42 |
# Run entrypoint
|
| 43 |
+
ENTRYPOINT [ "python" "-m", "pipenv", "run" ]
|
| 44 |
+
|
| 45 |
+
# Run the web service on container startup.
|
| 46 |
CMD [ "python", "src/web.py"]
|