copy correct directory
and avoid naming confusion between the workdir and the name of the build output folder
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Build
|
# Build
|
||||||
FROM node:18-alpine AS build
|
FROM node:18-alpine AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /edb-www
|
||||||
|
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ RUN npm run build
|
|||||||
# Serve
|
# Serve
|
||||||
FROM nginx:stable-alpine AS runtime
|
FROM nginx:stable-alpine AS runtime
|
||||||
|
|
||||||
COPY --from=build /app /usr/share/nginx/html
|
COPY --from=build /edb-www/app /usr/share/nginx/html
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user