Commit 287a6b5c authored by Nikos Pappas's avatar Nikos Pappas
Browse files

5th

parent d73acef4
FROM python:3.9.6-alpine
RUN useradd -m registry && echo "registry:registry" | chpasswd && adduser registry sudo
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN chown -R registry:registry /app/
# copy app and set work directory
COPY . /app/
WORKDIR /app/
RUN pip install --upgrade pip
RUN pip install -e .
version: '3.8'
services:
web:
build: ./app
command: python manage.py runserver 0.0.0.0:80
ports:
- 80:80
env_file:
- .env
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment