Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
|
@@ -5,15 +5,13 @@ USER user
|
|
| 5 |
# Set home to the user's home directory
|
| 6 |
ENV HOME=/home/user \
|
| 7 |
PATH=/home/user/.local/bin:$PATH
|
| 8 |
-
WORKDIR $HOME/app
|
| 9 |
-
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 10 |
-
COPY --chown=user . $HOME/app
|
| 11 |
-
RUN chown user:user -R $HOME/app
|
| 12 |
|
|
|
|
| 13 |
COPY ./requirements.txt /code/requirements.txt
|
| 14 |
|
| 15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
ADD --chown=user ./.zeno_cache $HOME/app/.zeno_cache
|
|
|
|
| 5 |
# Set home to the user's home directory
|
| 6 |
ENV HOME=/home/user \
|
| 7 |
PATH=/home/user/.local/bin:$PATH
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
+
CMD ["zeno", "config.toml"]
|
| 10 |
COPY ./requirements.txt /code/requirements.txt
|
| 11 |
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 13 |
+
WORKDIR $HOME/app
|
| 14 |
+
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 15 |
+
COPY --chown=user . $HOME/app
|
| 16 |
+
RUN chown user:user -R $HOME/app
|
| 17 |
ADD --chown=user ./.zeno_cache $HOME/app/.zeno_cache
|