check again

This commit is contained in:
Dedy Martadinata S
2022-05-05 23:43:13 +07:00
committed by GitHub
parent 4bff50a5f0
commit d2e1b04326

View File

@@ -13,7 +13,8 @@ WORKDIR /build
COPY [ "package.json", "package-lock.json", "angular.json", "tsconfig.json", "/build/" ] COPY [ "package.json", "package-lock.json", "angular.json", "tsconfig.json", "/build/" ]
COPY [ "src/", "/build/src/" ] COPY [ "src/", "/build/src/" ]
RUN npm install && \ RUN npm install && \
npm run build npm run build && \
ls -al backend/public
# Install backend deps # Install backend deps
@@ -21,9 +22,10 @@ FROM node:16-bullseye-slim as backend
ENV NO_UPDATE_NOTIFIER=true ENV NO_UPDATE_NOTIFIER=true
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /app WORKDIR /app
COPY ["backend/", "/app/" ] COPY [ "backend/","/app/" ]
RUN npm config set strict-ssl false && \ RUN npm config set strict-ssl false && \
npm install --prod npm install --prod && \
ls -al
# Final image # Final image
FROM node:16-bullseye-slim FROM node:16-bullseye-slim