Spaces:
Sleeping
Sleeping
OcDash Deploy commited on
Commit ·
c28865e
1
Parent(s): 495323c
fix: serve pre-built dist, no build step needed
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
|
@@ -1,12 +1,6 @@
|
|
| 1 |
-
FROM node:20-alpine AS base
|
| 2 |
-
WORKDIR /app
|
| 3 |
-
COPY package.json ./
|
| 4 |
-
RUN npm install
|
| 5 |
-
COPY . .
|
| 6 |
-
RUN npm run build
|
| 7 |
-
|
| 8 |
FROM nginx:alpine
|
| 9 |
-
COPY
|
| 10 |
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
| 11 |
EXPOSE 8080
|
| 12 |
CMD ["nginx", "-g", "daemon off;"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM nginx:alpine
|
| 2 |
+
COPY . /usr/share/nginx/html
|
| 3 |
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
| 4 |
+
RUN rm -f /usr/share/nginx/html/Dockerfile /usr/share/nginx/html/nginx.conf /usr/share/nginx/html/README.md
|
| 5 |
EXPOSE 8080
|
| 6 |
CMD ["nginx", "-g", "daemon off;"]
|