Update Dockerfile
Browse files- Dockerfile +8 -22
Dockerfile
CHANGED
|
@@ -1,28 +1,14 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
RUN apk add --no-cache python3 py3-pip curl
|
| 4 |
|
| 5 |
-
RUN
|
| 6 |
|
| 7 |
-
RUN
|
| 8 |
|
| 9 |
-
|
| 10 |
-
PATH=/home/user/.local/bin:$PATH
|
| 11 |
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
-
|
| 15 |
-
RUN python3 -m venv $VIRTUAL_ENV
|
| 16 |
-
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 17 |
-
RUN pip install --no-cache-dir requests webdavclient3
|
| 18 |
-
|
| 19 |
-
COPY --chown=user . $HOME/app
|
| 20 |
-
COPY --chown=user sync_data.sh $HOME/app/
|
| 21 |
-
|
| 22 |
-
RUN chmod +x $HOME/app/app && \
|
| 23 |
-
chmod +x $HOME/app/sync_data.sh
|
| 24 |
-
|
| 25 |
-
RUN chown -R user:user /home/user
|
| 26 |
-
USER user
|
| 27 |
-
|
| 28 |
-
CMD ["/bin/bash", "-c", "$HOME/app/sync_data.sh & sleep 10 && ./app server"]
|
|
|
|
| 1 |
+
FROM abudulin/qexo:latest
|
| 2 |
|
| 3 |
+
RUN apk add --update --no-cache python3 py3-pip curl lsof
|
| 4 |
|
| 5 |
+
RUN pip3 install --no-cache-dir requests webdavclient3
|
| 6 |
|
| 7 |
+
RUN chmod -R 775 /app
|
| 8 |
|
| 9 |
+
RUN mkdir -p /app/sync
|
|
|
|
| 10 |
|
| 11 |
+
COPY sync_data.sh /app/sync/
|
| 12 |
+
RUN chmod +x /app/sync/sync_data.sh
|
| 13 |
|
| 14 |
+
ENTRYPOINT ["/bin/sh", "-c", "/app/sync/sync_data.sh & sleep 10 && /app/entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|