Spaces:
Runtime error
Runtime error
Commit ·
cdd4928
1
Parent(s): d89e71d
Change port
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -15,6 +15,10 @@ RUN /code/venv/bin/pip install --no-cache-dir --upgrade -r /code/requirements.tx
|
|
| 15 |
|
| 16 |
COPY --chown=user . /code
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# Create necessary directories and set permissions before switching to non-root user
|
| 19 |
RUN mkdir -p /code/uploaded_videos /code/output_frames \
|
| 20 |
&& chown -R user:user /code \
|
|
@@ -33,9 +37,5 @@ EXPOSE 8000
|
|
| 33 |
# Define environment variable
|
| 34 |
ENV PYTHONUNBUFFERED=1
|
| 35 |
|
| 36 |
-
# Copy the start script into the container
|
| 37 |
-
COPY start.sh /code/start.sh
|
| 38 |
-
RUN chmod +x /code/start.sh
|
| 39 |
-
|
| 40 |
# Use the start script as the entry point
|
| 41 |
CMD ["/code/start.sh"]
|
|
|
|
| 15 |
|
| 16 |
COPY --chown=user . /code
|
| 17 |
|
| 18 |
+
# Copy the start script into the container and change permissions before switching to non-root user
|
| 19 |
+
COPY start.sh /code/start.sh
|
| 20 |
+
RUN chmod +x /code/start.sh
|
| 21 |
+
|
| 22 |
# Create necessary directories and set permissions before switching to non-root user
|
| 23 |
RUN mkdir -p /code/uploaded_videos /code/output_frames \
|
| 24 |
&& chown -R user:user /code \
|
|
|
|
| 37 |
# Define environment variable
|
| 38 |
ENV PYTHONUNBUFFERED=1
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
# Use the start script as the entry point
|
| 41 |
CMD ["/code/start.sh"]
|