mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
21 lines
347 B
Docker
21 lines
347 B
Docker
FROM python:3.11 AS base
|
|
|
|
ENV POETRY_VIRTUALENVS_CREATE=true
|
|
ENV FLASK_APP=senju/main.py
|
|
|
|
COPY ./entrypoint.sh /
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN apt update && apt install curl bash jq
|
|
RUN pip install poetry
|
|
RUN poetry install -v
|
|
|
|
# Expose development port
|
|
EXPOSE 5000
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|