mirror of
https://github.com/Eugeny/tabby-web.git
synced 2026-08-16 22:36:02 +01:00
init
This commit is contained in:
22
backend/Dockerfile
Normal file
22
backend/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM python:3.7-alpine AS build
|
||||
ARG EXTRA_DEPS
|
||||
RUN apk add build-base musl-dev libffi-dev openssl-dev mariadb-dev
|
||||
WORKDIR /app
|
||||
RUN pip install -U setuptools 'cryptography>=3.0,<3.1' poetry==1.1.7 $EXTRA_DEPS
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
RUN poetry config virtualenvs.create false
|
||||
RUN poetry install --no-dev --no-ansi --no-interaction
|
||||
|
||||
FROM python:3.7-alpine AS package
|
||||
WORKDIR /app
|
||||
COPY --from=0 /usr /usr
|
||||
COPY manage.py gunicorn.conf.py ./
|
||||
COPY tabby tabby
|
||||
|
||||
COPY start.sh /start.sh
|
||||
RUN ["chmod", "+x", "/start.sh"]
|
||||
|
||||
RUN ./manage.py collectstatic --noinput
|
||||
|
||||
CMD ["/start.sh"]
|
||||
Reference in New Issue
Block a user