This commit is contained in:
parent
c758984158
commit
d963ed714c
15
Dockerfile
15
Dockerfile
|
@ -1,12 +1,15 @@
|
||||||
FROM python:alpine3.18
|
FROM python:slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache git gcc curl postgresql-client
|
RUN apt-get update && apt-get install -y git gcc curl postgresql && \
|
||||||
RUN curl -sSL https://install.python-poetry.org | python
|
curl -sSL https://install.python-poetry.org | python - && \
|
||||||
ENV PATH="${PATH}:/root/.local/bin"
|
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \
|
||||||
RUN poetry config virtualenvs.create false && poetry install --no-dev
|
. ~/.bashrc && \
|
||||||
|
poetry config virtualenvs.create false && \
|
||||||
|
poetry install --no-dev
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["python", "server.py"]
|
# Run server when the container launches
|
||||||
|
CMD python server.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user