-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
FROM maestroserver/maestro-python-gcc | ||
|
||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
|
||
ENV APP_PATH=/opt/application | ||
|
||
WORKDIR $APP_PATH | ||
|
||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
COPY ./app $APP_PATH/app | ||
COPY ./instance $APP_PATH/instance | ||
COPY requirements.txt requirements.txt | ||
COPY package.json package.json | ||
COPY run.py $APP_PATH/run.py | ||
COPY gunicorn_config.py /opt/gunicorn_config.py | ||
|
||
RUN pip3 install --upgrade pip gunicorn | ||
RUN pip3 install -r requirements.txt | ||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
RUN addgroup -S app && adduser -S app -G app | ||
RUN pip3 install --upgrade pip gunicorn && \ | ||
pip3 install -r requirements.txt | ||
|
||
USER app | ||
ENTRYPOINT ["/sbin/tini","-g","--"] | ||
CMD ["docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
FROM maestroserver/maestro-python-gcc | ||
|
||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
|
||
ENV APP_PATH=/opt/application | ||
|
||
WORKDIR $APP_PATH | ||
|
||
COPY docker-entrypoint.sh /usr/local/bin/ | ||
COPY ./app $APP_PATH/app | ||
COPY ./instance $APP_PATH/instance | ||
COPY requirements.txt requirements.txt | ||
COPY package.json package.json | ||
COPY run.py $APP_PATH/run.py | ||
|
||
RUN chmod +x /usr/local/bin/docker-entrypoint.sh | ||
RUN addgroup -S app && adduser -S app -G app | ||
RUN pip3 install -r requirements.txt | ||
|
||
USER app | ||
ENTRYPOINT ["/sbin/tini","-g","--"] | ||
CMD ["docker-entrypoint-workers.git sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters