Files
core/Dockerfile

16 lines
360 B
Docker
Raw Normal View History

2024-02-17 13:21:52 +03:00
FROM python:alpine3.18
2023-10-06 03:22:37 +03:00
WORKDIR /app
2023-10-23 17:47:11 +03:00
COPY . /app
2024-02-17 13:21:52 +03:00
RUN apk update && apk add --no-cache git gcc curl postgresql-client
RUN curl -sSL https://install.python-poetry.org | python - && \
2023-10-23 17:47:11 +03:00
poetry config virtualenvs.create false && \
poetry install --no-dev
2024-02-17 13:21:52 +03:00
# Expose port 8000
EXPOSE 8000
2024-01-25 22:41:27 +03:00
# Run server when the container launches
2024-02-17 13:21:52 +03:00
CMD ["python", "server.py"]