| 1234567891011121314151617 |
- FROM node:gallium-alpine3.15
- WORKDIR /usr/src/app
- COPY . .
- RUN apk add --no-cache make gcc g++ python && \
- npm install && \
- npm rebuild bcrypt --build-from-source && \
- apk del make gcc g++ python
- RUN npm config set registry https://registry.npmmirror.com/
- RUN npm install -g npm
- RUN npm install
- EXPOSE $PORT
- CMD [ "npm", "run-script","production" ]
|