added docker files
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# Pull base image
|
||||
FROM python:3.10
|
||||
|
||||
# Set environment varibles
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
WORKDIR /code/
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install pipenv
|
||||
COPY Pipfile Pipfile.lock /code/
|
||||
RUN pipenv install --system --dev
|
||||
|
||||
COPY . /code/
|
||||
|
||||
EXPOSE 8080
|
||||
10
docker-compose.yml
Normal file
10
docker-compose.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
web:
|
||||
build: .
|
||||
command: "python main.py"
|
||||
volumes:
|
||||
- .:/code
|
||||
ports:
|
||||
- "8080:8080"
|
||||
Reference in New Issue
Block a user