Skip to content

Commit

Permalink
Merge pull request #22 from DaemonLab/docker
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
mittal-ishaan authored Jun 3, 2023
2 parents 8c632bb + fb32a0e commit 8c33898
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
14 changes: 14 additions & 0 deletions messWebsite/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3

ENV PYTHONUNBUFFERED 1

WORKDIR /app

ADD . /app

COPY ./requirements.txt /app/requirements.txt

RUN pip install -r requirements.txt

COPY . /app

18 changes: 18 additions & 0 deletions messWebsite/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'

services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
volumes:
- .:/code
depends_on:
- db
db:
image: nouchka/sqlite3:latest
volumes:
- ./data/db.sqlite3:/root/db.sqlite3
environment:
- SQLITE3_DB=db.sqlite3
9 changes: 9 additions & 0 deletions messWebsite/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Django==4.1.7
django_allauth==0.54.0
django_environ==0.10.0
django_import_export==3.2.0
pandas==1.5.3
gunicorn == 20.1.0
whitenoise==6.4.0
Pillow
# django-cloudinary-storage==0.3.0
4 changes: 0 additions & 4 deletions requirements.txt

This file was deleted.

0 comments on commit 8c33898

Please sign in to comment.