-
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.
Allow Sync for non-root containers-hotreload example (#3680)
* Allow Sync for non-root containers-hotreload example * Allow Sync for non-root containers-hotreload example - integration dir * backporting #3683 changes for better examples * integration files updates of hot-reload example * newline at the end of file * newline at the end of file
- Loading branch information
Showing
12 changed files
with
122 additions
and
36 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* ./ | ||
COPY --chown=node:node package* ./ | ||
RUN npm ci | ||
COPY src . | ||
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,9 +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 | ||
|
||
COPY requirements.txt . | ||
RUN 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
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* ./ | ||
COPY --chown=node:node package* ./ | ||
RUN npm ci | ||
COPY src . | ||
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,9 +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 | ||
|
||
COPY requirements.txt . | ||
RUN 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