remove liara.json & workflow/liara.yaml - add Dockerfile & docker-compose file
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# pull official base image
|
||||
FROM python:3.10.0-slim-buster
|
||||
|
||||
# Create the app directory
|
||||
RUN mkdir /app
|
||||
|
||||
# set work directory
|
||||
WORKDIR app/
|
||||
|
||||
# set environment variables
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
# install dependencies
|
||||
RUN pip install --upgrade pip
|
||||
COPY ./requirements.txt /app/
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# copy project
|
||||
COPY . /app/
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:5000"]
|
||||
Reference in New Issue
Block a user