Skip to content

Commit

Permalink
create dockerfiles to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdwns414 committed Aug 15, 2023
1 parent f35e192 commit c4978d2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions dockerfile/dockerfile.gunicorn
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.8

ENV PYTHONUNBUFFERED 1

WORKDIR /app

COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt

COPY . /app/

RUN python manage.py collectstatic --noinput

RUN chmod -R 755 /app/static /app/media

CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "backback.wsgi:application"]
3 changes: 3 additions & 0 deletions dockerfile/dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM nginx

COPY nginx.conf /etc/nginx/nginx.conf

0 comments on commit c4978d2

Please sign in to comment.