mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
feat: Add Dockerfile for development environment
Refs: OPS-10
This commit is contained in:
parent
25227c8767
commit
8f53233d28
1 changed files with 22 additions and 0 deletions
22
Dockerfile-DEV
Normal file
22
Dockerfile-DEV
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM python:3.12-alpine
|
||||
|
||||
# VENV not needed in docker container
|
||||
ENV POETRY_VIRTUALENVS_CREATE=false
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
# Install dependencies
|
||||
RUN pip install poetry
|
||||
RUN poetry install
|
||||
|
||||
# Expose development port
|
||||
EXPOSE 5000
|
||||
|
||||
# Include host flag to make flask listen on all interfaces
|
||||
# Otherwise it is not accessible from the outside.
|
||||
CMD [ "flask", "--app", "senju/main", "run", "--debug", "--host=0.0.0.0"]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue