Docker working
This commit is contained in:
parent
4179c43f0f
commit
94c46143a9
@ -6,11 +6,13 @@ COPY requirements.txt ./
|
|||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Copy in the source code
|
# Copy in the source code
|
||||||
COPY src ./src
|
COPY . .
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Setup an app user so the container doesn't run as the root user
|
# Setup an app user so the container doesn't run as the root user
|
||||||
RUN useradd app
|
RUN useradd app
|
||||||
USER app
|
USER app
|
||||||
|
|
||||||
CMD ["flask", "--app", "build", "run"]
|
CMD ["cd", "/usr/local/app"]
|
||||||
|
CMD "ls"
|
||||||
|
CMD ["flask", "--app", "build", "run", "--host=0.0.0.0"]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user