fix dockerfile

This commit is contained in:
whidix
2023-03-07 01:08:01 +01:00
parent 7349e74c88
commit d1e9c18f4f
2 changed files with 4 additions and 5 deletions

View File

@@ -5,8 +5,7 @@ WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
COPY . .
RUN npm run build
FROM nginx:latest
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 3000
CMD ["node", "build/index.js"]