Skip to content

Commit 85e9751

Browse files
entrypoint -> cmd, add -y flag
Latter for sanity
1 parent e837773 commit 85e9751

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ARG DEBIAN_FRONTEND=noninteractive
66

77
# ! missing arg (`-y`), 2 layers, no multi-stage
88
# install dependencies
9-
RUN apt -qq update && apt -qq install curl gcc lsof python3-dev
9+
RUN apt -qq update && apt -qq install -y curl gcc lsof python3-dev
1010
RUN rm -rf /var/lib/apt/lists/*
1111

1212
# pip env vars

Dockerfile.og

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM python:3.11-slim-bullseye
44
ARG DEBIAN_FRONTEND=noninteractive
55

66
# install dependencies
7-
RUN apt -qq update && apt -qq install curl gcc lsof python3-dev
7+
RUN apt -qq update && apt -qq install -y curl gcc lsof python3-dev
88
RUN rm -rf /var/lib/apt/lists/*
99

1010
# pip env vars
@@ -36,5 +36,8 @@ RUN poetry install --no-ansi --no-root --without dev
3636
# listening port (not published)
3737
EXPOSE 3000
3838

39-
ENTRYPOINT ["python", "main.py"]
40-
# CMD ["default", "arg"]
39+
# ENTRYPOINT ["python", "main.py"]
40+
# ENTRYPOINT ["poetry", "shell"]
41+
CMD ["/bin/bash"]
42+
# TODO: `TypeError: FastAPI.__call__() missing 1 required positional argument: 'send'`
43+
# CMD ["gunicorn", "-c", "gunicorn.conf.py", "main:app"]

0 commit comments

Comments
 (0)