-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
883a188
commit 3c5f9c2
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |