Dockerfile: install build dependencies in build layer

This commit is contained in:
Jesse Chan
2020-10-24 00:21:14 +08:00
parent b4690a628e
commit 08fa52409b

View File

@@ -12,6 +12,10 @@ WORKDIR /usr/src/app/
# Copy project files
COPY . ./
# Install build dependencies
RUN apk --no-cache add \
python build-base
# Fetch dependencies from npm
RUN npm set unsafe-perm true
RUN npm install