Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit 46032ea

Browse files
committed
chore: use yarn to build docker image
1 parent 342279b commit 46032ea

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ FROM node:dubnium-alpine as base
44
WORKDIR /root/build
55

66
# install and cache node packages
7-
COPY package.json package-lock.json ./
8-
RUN npm set progress=false && npm config set depth 0
9-
RUN npm install
7+
COPY package.json yarn.lock ./
8+
RUN yarn install
109
COPY . .
11-
RUN npm run build:prod
10+
RUN yarn build
1211

1312
#
1413
# ---- Release ----

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ http {
4040
add_header X-XSS-Protection "1; mode=block" always;
4141
add_header X-Content-Type-Options "nosniff" always;
4242
add_header Referrer-Policy "no-referrer-when-downgrade" always;
43-
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always;
43+
add_header Content-Security-Policy "default-src * data: 'unsafe-eval' 'unsafe-inline'" always; // Review
4444

4545
# . files
4646
location ~ /\.(?!well-known) {

0 commit comments

Comments
 (0)