Spaces:
Sleeping
Sleeping
Commit ·
e40bbf1
1
Parent(s): b0d8ec9
Stabilize HF Docker build with npm ci and lockfile
Browse files- .dockerignore +8 -0
- .gitignore +4 -0
- Dockerfile +2 -2
- frontend/next-env.d.ts +5 -0
- frontend/package-lock.json +0 -0
.dockerignore
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.git
|
| 2 |
+
.gitignore
|
| 3 |
+
frontend/node_modules
|
| 4 |
+
frontend/.next
|
| 5 |
+
frontend/.turbo
|
| 6 |
+
backend/__pycache__
|
| 7 |
+
**/__pycache__
|
| 8 |
+
**/*.pyc
|
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
frontend/node_modules/
|
| 2 |
+
frontend/.next/
|
| 3 |
+
backend/__pycache__/
|
| 4 |
+
*.pyc
|
Dockerfile
CHANGED
|
@@ -3,8 +3,8 @@ FROM node:20-alpine AS frontend-builder
|
|
| 3 |
|
| 4 |
WORKDIR /app/frontend
|
| 5 |
|
| 6 |
-
COPY frontend/package.json ./
|
| 7 |
-
RUN npm
|
| 8 |
|
| 9 |
COPY frontend/ ./
|
| 10 |
RUN npm run build
|
|
|
|
| 3 |
|
| 4 |
WORKDIR /app/frontend
|
| 5 |
|
| 6 |
+
COPY frontend/package.json frontend/package-lock.json ./
|
| 7 |
+
RUN npm ci
|
| 8 |
|
| 9 |
COPY frontend/ ./
|
| 10 |
RUN npm run build
|
frontend/next-env.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/// <reference types="next" />
|
| 2 |
+
/// <reference types="next/image-types/global" />
|
| 3 |
+
|
| 4 |
+
// NOTE: This file should not be edited
|
| 5 |
+
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
frontend/package-lock.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|