Skip to content

Commit 5368729

Browse files
chore: update dockerfile.web
And remove unused dockerfiles
1 parent 0187a85 commit 5368729

File tree

3 files changed

+7
-351
lines changed

3 files changed

+7
-351
lines changed

app/Dockerfile

-167
This file was deleted.

app/Dockerfile.distroless

-174
This file was deleted.

app/Dockerfile.web

+7-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# syntax=docker/dockerfile:1.5
1+
# syntax=docker/dockerfile:1.6
22

33
# full semver just for python base image
4-
ARG PYTHON_VERSION=3.11.4
4+
ARG PYTHON_VERSION=3.11.6
55

66
FROM python:${PYTHON_VERSION}-slim-bullseye AS builder
77

88
# avoid stuck build due to user prompt
99
ARG DEBIAN_FRONTEND=noninteractive
1010

1111
# install dependencies
12-
RUN apt -qq update \
13-
&& apt -qq install \
12+
RUN apt-get -qq update \
13+
&& apt-get -qq install \
1414
--no-install-recommends -y \
1515
curl \
1616
gcc \
@@ -24,7 +24,7 @@ ENV PIP_DEFAULT_TIMEOUT=100
2424

2525
# poetry env vars
2626
ENV POETRY_HOME="/opt/poetry"
27-
ENV POETRY_VERSION=1.4.2
27+
ENV POETRY_VERSION=1.7.1
2828
ENV POETRY_VIRTUALENVS_IN_PROJECT=true
2929
ENV POETRY_NO_INTERACTION=1
3030

@@ -78,8 +78,8 @@ RUN groupadd ${USER_NAME} \
7878
&& chown -R ${USER_NAME}:${USER_GROUP} /app/raw
7979

8080
# install dependencies
81-
RUN apt -qq update \
82-
&& apt -qq install \
81+
RUN apt-get -qq update \
82+
&& apt-get -qq install \
8383
--no-install-recommends -y \
8484
curl \
8585
lsof \
@@ -90,7 +90,4 @@ COPY --from=builder --chown=${USER_NAME} "$VENV" "$VENV"
9090

9191
USER ${USER_NAME}
9292

93-
# ENTRYPOINT ["python", "main.py"]
94-
# CMD ["gunicorn", "-c", "config/gunicorn.conf.py", "main:app"]
9593
CMD ["/bin/sh", "startup.sh"]
96-
# CMD ["/bin/sh"]

0 commit comments

Comments
 (0)