Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dyipon authored Feb 12, 2024
1 parent 0efc589 commit 79f2bb4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# pull official base image
FROM python:3.9.5-slim-buster

# set work directory
WORKDIR /usr/src/app

# install dependencies
COPY ./requirements.txt .
RUN pip3 install --upgrade pip wheel \
&& pip3 install -r requirements.txt

# copy project
COPY . .

USER root
EXPOSE 8080
CMD ["/bin/bash", "-c", "python3 main.py"]

0 comments on commit 79f2bb4

Please sign in to comment.