Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -8,9 +8,12 @@ RUN useradd -m -u 1000 user
|
|
| 8 |
COPY --chown=user ./requirements.txt /requirements.txt
|
| 9 |
COPY --chown=user ./train.sh /train.sh
|
| 10 |
COPY --chown=user ./upload_results.py /upload_results.py
|
|
|
|
|
|
|
| 11 |
RUN chmod +x /train.sh
|
| 12 |
# May not need to do this. Just tired of permissions errors and going wild.
|
| 13 |
RUN chmod +x /upload_results.py
|
|
|
|
| 14 |
|
| 15 |
# Make the working directory for user.
|
| 16 |
RUN mkdir /app
|
|
@@ -40,6 +43,7 @@ WORKDIR /app
|
|
| 40 |
# Permissions. Permissions. Already did this. Doing it again anyway.
|
| 41 |
RUN chmod +x train.sh
|
| 42 |
RUN chmod +x upload_results.py
|
|
|
|
| 43 |
|
| 44 |
# Expose the secret so it can be used later.
|
| 45 |
RUN --mount=type=secret,id=DATACOMP_TOKEN
|
|
|
|
| 8 |
COPY --chown=user ./requirements.txt /requirements.txt
|
| 9 |
COPY --chown=user ./train.sh /train.sh
|
| 10 |
COPY --chown=user ./upload_results.py /upload_results.py
|
| 11 |
+
COPY --chown=user ./pause_space.py /pause_space.py
|
| 12 |
+
|
| 13 |
RUN chmod +x /train.sh
|
| 14 |
# May not need to do this. Just tired of permissions errors and going wild.
|
| 15 |
RUN chmod +x /upload_results.py
|
| 16 |
+
RUN chmod +x /pause_space.py
|
| 17 |
|
| 18 |
# Make the working directory for user.
|
| 19 |
RUN mkdir /app
|
|
|
|
| 43 |
# Permissions. Permissions. Already did this. Doing it again anyway.
|
| 44 |
RUN chmod +x train.sh
|
| 45 |
RUN chmod +x upload_results.py
|
| 46 |
+
RUN chmod +x pause_space.py
|
| 47 |
|
| 48 |
# Expose the secret so it can be used later.
|
| 49 |
RUN --mount=type=secret,id=DATACOMP_TOKEN
|