Skip to content

Commit 48316a9

Browse files
Create Dockerfile
1 parent 25d77b1 commit 48316a9

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

DockerizeFlaskApplication/Dockerfile

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Using lightweight alpine image
2+
FROM python:3.8-alpine
3+
4+
# Installing packages
5+
RUN apk update
6+
RUN pip install --no-cache-dir pipenv
7+
8+
# Defining working directory and adding source code
9+
WORKDIR /usr/src/app
10+
COPY Pipfile Pipfile.lock bootstrap.sh ./
11+
COPY dirname ./dirname
12+
13+
# Install API dependencies
14+
RUN pipenv install --system --deploy
15+
16+
# Start app
17+
EXPOSE 5000
18+
ENTRYPOINT ["/usr/src/app/bootstrap.sh"]

0 commit comments

Comments
 (0)