-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.10
RUN apt-get -y update \
&& apt-get install -y gettext git \
# Cleanup apt cache
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN curl -sSL https://install.python-poetry.org | POETRY_HOME=/opt/poetry POETRY_VERSION=1.1.12 python && \
cd /usr/local/bin && \
ln -s /opt/poetry/bin/poetry && \
poetry config virtualenvs.create false
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
RUN bash -c "poetry install --no-root --no-dev"
COPY src/shutterbox ./src/shutterbox
RUN bash -c "poetry install"
COPY docker-entrypoint.sh ./
EXPOSE 8080
ENV APP_CLI=shutterbox
ENTRYPOINT ["/bin/bash", "docker-entrypoint.sh"]
CMD gunicorn --config src/shutterbox/gunicorn.conf.py shutterbox.app:app