Initial commit from ZIP
This commit is contained in:
commit
378d4692a9
454 files changed
+40367
No files matched your search
Executable
+24
@@ -0,0 +1,24 @@
|
||||
FROM python:3.8
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE 1
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
RUN apt-get update && apt-get install -y nano && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN mkdir -p /code && chown -R www-data:www-data /code
|
||||
RUN mkdir -p /var/www && chown -R www-data:www-data /var/www
|
||||
|
||||
USER www-data
|
||||
ENV PATH /var/www/.local/bin:${PATH}
|
||||
|
||||
WORKDIR /code
|
||||
COPY pyproject.toml poetry.lock /code/
|
||||
|
||||
RUN pip install --upgrade -U pip
|
||||
RUN pip install -U poetry
|
||||
|
||||
RUN poetry config virtualenvs.create false --local
|
||||
RUN poetry install --no-dev --extras "production"
|
||||
|
||||
COPY . /code/
|
||||
CMD exec gunicorn outbo.wsgi:application --access-logfile - --bind 0.0.0.0:8000 --workers 2
|
||||
Reference in new issue
Block a user