Skip to content

Commit

Permalink
- remove obsolete node-sass
Browse files Browse the repository at this point in the history
- add sass package that do not require binary deps (node-gyp_
- remove unused deps from dockerfile
- use LTS node version in Dockerfile
- use `npm ci` instead of npm i
  • Loading branch information
nosovk committed Nov 17, 2021
1 parent dc7e9f9 commit 9525bdc
Show file tree
Hide file tree
Showing 5 changed files with 19,151 additions and 7,274 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
dist
.github
19 changes: 4 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
FROM node:15-alpine

RUN alias python=python3
RUN apk add python3
RUN apk add python2
RUN apk add make
RUN apk add gcc
RUN apk add g++
RUN apk add git
FROM node:16-alpine

WORKDIR /app

COPY package.json ./
RUN npm install
COPY package.json package-lock.json ./
RUN npm ci

COPY public/ public/
COPY src/ src/
COPY styles/ styles/
COPY webpack.config.js .babelrc ./
COPY . .

RUN npm run build

Expand Down
Loading

0 comments on commit 9525bdc

Please sign in to comment.