-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change workdir to /app and simplify dockerfile
- Loading branch information
Showing
2 changed files
with
3 additions
and
8 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 |
---|---|---|
@@ -1,19 +1,14 @@ | ||
# pull official base image | ||
FROM python:3.7.9-alpine | ||
|
||
# set work directory | ||
WORKDIR /usr/src/app | ||
WORKDIR /app | ||
|
||
# set environment variables | ||
ENV PYTHONDONTWRITEBYTECODE 1 | ||
ENV PYTHONUNBUFFERED 1 | ||
|
||
# install dependencies | ||
RUN pip install --upgrade pip | ||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
# copy project | ||
# COPY . . | ||
COPY . . | ||
|
||
CMD ["gunicorn", "--bind", ":8000", "--workers", "3", "muxy.wsgi:application"] |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ services: | |
env_file: | ||
- .env | ||
volumes: | ||
- .:/usr/src/app | ||
- .:/app | ||
stdin_open: true | ||
tty: true | ||
ports: | ||
|