Remove COPY node_modules from Dockerfile (#425)

This commit is contained in:
Carl Reid 2020-06-21 13:45:23 +02:00 committed by GitHub
parent 35339f7328
commit 7ad0dd43e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,5 @@
FROM node:14.2-alpine AS builder FROM node:14.2-alpine AS builder
WORKDIR /build WORKDIR /build
COPY node_modules/ ./node_modules/
COPY main.js package-lock.json package.json ./ COPY main.js package-lock.json package.json ./
RUN npm install && npm install -g pkg RUN npm install && npm install -g pkg
RUN pkg -t node14-alpine-x64 . RUN pkg -t node14-alpine-x64 .