Skip to content

Commit

Permalink
added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-lang committed May 1, 2020
1 parent 883a188 commit 3c5f9c2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:alpine

# Install packages
RUN apk --no-cache add bash make gcc libc-dev python3-dev imagemagick

# set environment variables so docker uses the virtual environment
ENV VIRTUAL_ENV=./.virtualenv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

WORKDIR /usr/src/app

# Copy everything to the image filesystem.
COPY . .
# Run setup script
RUN bash setup.sh

# Tell Docker that this port is used
EXPOSE 5000

# Start application.
CMD ["python3", "./run.py", "waitress"]

0 comments on commit 3c5f9c2

Please sign in to comment.