mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
fix for duplicate files being created.
This commit is contained in:
37
Dockerfile
37
Dockerfile
@@ -1,23 +1,36 @@
|
||||
FROM python:3-alpine
|
||||
|
||||
ENV PYTHONUNBUFFERED 1
|
||||
|
||||
RUN apk update
|
||||
RUN apk add --no-cache tini bash unrar dcron postgresql-dev gcc python3-dev musl-dev
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps mariadb-dev build-base \
|
||||
&& pip install pipenv \
|
||||
&& apk add --virtual .runtime-deps mariadb-connector-c-dev mariadb-connector-c \
|
||||
&& apk del .build-deps
|
||||
ENV PYTHONFAULTHANDLER=1 \
|
||||
PYTHONHASHSEED=random \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
RUN mkdir /src
|
||||
RUN mkdir /static
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
ADD Pipfile /src
|
||||
ADD Pipfile.lock /src
|
||||
ENV PIP_DEFAULT_TIMEOUT=100 \
|
||||
PIP_DISABLE_PIP_VERSION_CHECK=1 \
|
||||
PIP_NO_CACHE_DIR=1
|
||||
|
||||
RUN pipenv install --deploy --dev --ignore-pipfile --system
|
||||
RUN apk update
|
||||
RUN apk add --no-cache tini bash unrar dcron postgresql-dev gcc python3-dev musl-dev libffi-dev
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps mariadb-dev build-base \
|
||||
&& apk add --virtual .runtime-deps mariadb-connector-c-dev mariadb-connector-c \
|
||||
&& apk del .build-deps
|
||||
|
||||
RUN pip install "poetry==1.1.4"
|
||||
|
||||
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /src
|
||||
|
||||
COPY pyproject.toml /src
|
||||
|
||||
RUN poetry config virtualenvs.create false \
|
||||
&& poetry install --no-interaction --no-ansi
|
||||
|
||||
COPY entrypoint.sh /src
|
||||
|
||||
COPY . /src/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user