-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integration files updates of hot-reload example
- Loading branch information
Showing
6 changed files
with
64 additions
and
20 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
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
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,9 +1,14 @@ | ||
FROM node:10.15.3-alpine | ||
FROM node:12.16.0-alpine3.10 | ||
|
||
USER node | ||
RUN mkdir /home/node/app | ||
WORKDIR /home/node/app | ||
|
||
WORKDIR /app | ||
EXPOSE 3000 | ||
CMD ["npm", "run", "dev"] | ||
ARG ENV=production | ||
ENV NODE_ENV $ENV | ||
CMD npm run $NODE_ENV | ||
|
||
COPY package* ./ | ||
RUN chown -R 400:400 /app && npm ci | ||
COPY src . | ||
COPY --chown=node:node package* ./ | ||
RUN npm ci | ||
COPY --chown=node:node . . |
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
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,8 +1,18 @@ | ||
FROM python:3.7.4-alpine3.10 | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN adduser -D python | ||
USER python | ||
WORKDIR /home/python | ||
|
||
ARG DEBUG=0 | ||
ENV FLASK_DEBUG $DEBUG | ||
ENV FLASK_APP=src/app.py | ||
CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"] | ||
ENV FLASK_DEBUG=1 | ||
ENV FLASK_APP=app.py | ||
WORKDIR /usr/src/app | ||
COPY requirements.txt . | ||
RUN chown -R 400:400 /usr/src/app && pip install -r requirements.txt | ||
COPY src ./ | ||
|
||
COPY --chown=python:python requirements.txt . | ||
ENV PATH="/home/python/.local/bin:${PATH}" | ||
RUN pip install --user -r requirements.txt | ||
|
||
COPY --chown=python:python src src |
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