Spaces:
Runtime error
Runtime error
2nd
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -33,6 +33,10 @@ RUN pip3 install --no-cache-dir -r /app/requirements.txt
|
|
33 |
EXPOSE 8000
|
34 |
EXPOSE 8501
|
35 |
|
|
|
|
|
|
|
|
|
36 |
RUN useradd -m -u 1000 user
|
37 |
# Switch to the "user" user
|
38 |
USER user
|
@@ -51,9 +55,5 @@ ENV HOME=/home/user \
|
|
51 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
52 |
COPY --chown=user . /home/user/app
|
53 |
|
54 |
-
# Copy and give execute permissions to the start script
|
55 |
-
COPY start_server.sh /app/start_server.sh
|
56 |
-
RUN chmod +x /app/start_server.sh
|
57 |
-
|
58 |
# Run the start script
|
59 |
CMD ["/app/start_server.sh"]
|
|
|
33 |
EXPOSE 8000
|
34 |
EXPOSE 8501
|
35 |
|
36 |
+
# Copy and give execute permissions to the start script
|
37 |
+
COPY start_server.sh /app/start_server.sh
|
38 |
+
RUN chmod +x /app/start_server.sh
|
39 |
+
|
40 |
RUN useradd -m -u 1000 user
|
41 |
# Switch to the "user" user
|
42 |
USER user
|
|
|
55 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
56 |
COPY --chown=user . /home/user/app
|
57 |
|
|
|
|
|
|
|
|
|
58 |
# Run the start script
|
59 |
CMD ["/app/start_server.sh"]
|