Skip to content

Commit

Permalink
update docker file
Browse files Browse the repository at this point in the history
uses python 3.10 now
  • Loading branch information
fhenneke committed Sep 12, 2023
1 parent 03bcf0d commit f402734
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
FROM python:alpine
FROM python:3.10-alpine

RUN apk add --update gcc libc-dev linux-headers

WORKDIR /app

# Only copies requirements.txt and src directory (see .dockerignore)
COPY . .
# First copy over the requirements.txt and install dependencies, this makes
# building subsequent images easier.
COPY requirements.txt .
RUN pip install -r requirements.txt

ENTRYPOINT [ "python3", "-m" , "src._server"]
# Copy full source (see .dockerignore)
COPY . .

CMD [ "python3", "-m" , "src._server"]

0 comments on commit f402734

Please sign in to comment.