Skip to content

Commit

Permalink
fix: Change workdir to /app and simplify dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Feb 4, 2024
1 parent dbe7c3b commit dc5ca13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
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"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
env_file:
- .env
volumes:
- .:/usr/src/app
- .:/app
stdin_open: true
tty: true
ports:
Expand Down

0 comments on commit dc5ca13

Please sign in to comment.