-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 821 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 821 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
# Use the official Python 3.12 image based on Alpine Linux
FROM python:3.12-alpine
# Set the working directory in the container
WORKDIR /app
# --- Install system dependencies and global tools ---
RUN python -m pip install --upgrade pip
RUN apk add --no-cache nodejs npm curl && \
npm install -g live-server
# --- Install Python application dependencies ---
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# --- Install Node.js application dependencies ---
# CORRECTED: Copy package files from their new, correct location
COPY app/node/package.json app/node/package-lock.json* ./
RUN npm install --no-fund --no-audit
# --- Add healthcheck script ---
COPY healthcheck.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/healthcheck.sh
# --- Runtime configuration ---
EXPOSE 8080
VOLUME /app