Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -4,6 +4,8 @@ FROM node:18-alpine AS builder
|
|
| 4 |
RUN apk add --no-cache git python3 make g++ bash findutils
|
| 5 |
WORKDIR /app
|
| 6 |
COPY . .
|
|
|
|
|
|
|
| 7 |
RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
|
| 8 |
RUN npm run build
|
| 9 |
|
|
@@ -12,8 +14,6 @@ RUN mkdir -p /build_output \
|
|
| 12 |
&& if [ -z "$FILE" ]; then echo "ビルド成果物が見つかりません"; exit 1; fi \
|
| 13 |
&& cp "$FILE" /build_output/eruda-features.js
|
| 14 |
|
| 15 |
-
RUN npm install @babel/runtime --save
|
| 16 |
-
|
| 17 |
# 2. Python + Flask のランタイム
|
| 18 |
FROM python:3.11-slim
|
| 19 |
RUN pip install --no-cache-dir flask
|
|
|
|
| 4 |
RUN apk add --no-cache git python3 make g++ bash findutils
|
| 5 |
WORKDIR /app
|
| 6 |
COPY . .
|
| 7 |
+
RUN npm install @babel/runtime --save
|
| 8 |
+
|
| 9 |
RUN npm ci --no-audit --no-fund || npm install --no-audit --no-fund
|
| 10 |
RUN npm run build
|
| 11 |
|
|
|
|
| 14 |
&& if [ -z "$FILE" ]; then echo "ビルド成果物が見つかりません"; exit 1; fi \
|
| 15 |
&& cp "$FILE" /build_output/eruda-features.js
|
| 16 |
|
|
|
|
|
|
|
| 17 |
# 2. Python + Flask のランタイム
|
| 18 |
FROM python:3.11-slim
|
| 19 |
RUN pip install --no-cache-dir flask
|