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