docker
This commit is contained in:
+4
-9
@@ -1,14 +1,11 @@
|
||||
FROM python:3-alpine
|
||||
|
||||
ARG UID_
|
||||
ENV UID_=1000
|
||||
RUN apk add --no-cache --upgrade bash
|
||||
RUN mkdir -p /www
|
||||
RUN chown -R 1000:1000 /www
|
||||
|
||||
ADD --chown=$UID_:$UID_ . /www
|
||||
WORKDIR /www
|
||||
|
||||
COPY . .
|
||||
#COPY --chown=1000:1000 . .
|
||||
#COPY --chown=daemon:daemon settings.ini.example settings.ini
|
||||
RUN cp settings.ini.example settings.ini
|
||||
RUN chmod +x start.sh
|
||||
RUN set -e; \
|
||||
apk add --no-cache --virtual .build-deps \
|
||||
@@ -19,6 +16,4 @@ RUN set -e; \
|
||||
pip install -r requirements.txt; \
|
||||
apk del .build-deps;
|
||||
|
||||
#EXPOSE 9090
|
||||
USER 1000
|
||||
ENTRYPOINT ["./start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user