core/Dockerfile

16 lines
360 B
Docker
Raw Normal View History

2024-02-17 10:21:52 +00:00
FROM python:alpine3.18
2023-10-06 00:22:37 +00:00
WORKDIR /app
2023-10-23 14:47:11 +00:00
COPY . /app
2024-02-17 10:21:52 +00: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 14:47:11 +00:00
poetry config virtualenvs.create false && \
poetry install --no-dev
2024-02-17 10:21:52 +00:00
# Expose port 8000
EXPOSE 8000
2024-01-25 19:41:27 +00:00
# Run server when the container launches
2024-02-17 10:21:52 +00:00
CMD ["python", "server.py"]