-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile.dev
More file actions
35 lines (27 loc) · 837 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
35 lines (27 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM node:24-alpine AS frontend-dev
WORKDIR /app
COPY package*.json ./
RUN npm ci
EXPOSE 5173
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
FROM python:3.11-slim AS backend-dev
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
FLASK_APP=app_factory:create_app \
FLASK_ENV=development \
FLASK_DEBUG=1
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
libjpeg62-turbo-dev \
zlib1g-dev \
libpng-dev \
libfreetype6-dev \
libmagic1 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
COPY requirements ./requirements
RUN pip install --no-cache-dir -r requirements/dev.txt -c requirements/constraints.txt
EXPOSE 5000
CMD ["flask", "--app", "app_factory:create_app", "run", "--host=0.0.0.0", "--port=5000", "--debug"]