Add frontend/minattest-app/Dockerfile
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
# frontend/minattest-app/Dockerfile
|
||||||
|
|
||||||
|
FROM node:20 AS build
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:stable-alpine
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
|
||||||
|
COPY --from=build /app/dist ./
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
Reference in New Issue
Block a user