sk-docker / Dockerfile
Ron Au
Initial D
70cf894
raw
history blame
316 Bytes
from node:18-alpine
WORKDIR /app
COPY . .
COPY package.json package-lock.json
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3000
CMD ["node", "build"]
# RUN npm install
# RUN npm run build
# WORKDIR /app
# RUN rm -rf ./*
# COPY --from=build /app/package.json .
# COPY --from=build /app/build .
# RUN npm run