This commit is contained in:
parent
8cff562e64
commit
9e182c4b94
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
# pull official base image
|
||||
FROM python:3.9.6-alpine
|
||||
|
||||
# set work directory
|
||||
WORKDIR /usr/src/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 . .
|
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
|
@ -0,0 +1,15 @@
|
|||
version: '3.8'
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
command: python main.py
|
||||
volumes:
|
||||
- mailsend_server:/usr/src/app/
|
||||
ports:
|
||||
- 8081:8081
|
||||
env_file:
|
||||
- ./config.ini
|
||||
|
||||
volumes:
|
||||
mailsend_server:
|
Loading…
Reference in New Issue
Block a user