Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM node:14.18.1-alpine
- RUN apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community --repository http://dl-3.alpinelinux.org/alpine/edge/main vips-dev
- RUN apk add --no-cache --virtual .gyp build-base gcc autoconf automake zlib-dev libpng-dev nasm
- #RUN apk add --no-cache --virtual .gyp \
- # python2 \
- # make \
- # gcc \
- # g++
- WORKDIR /app
- ENV APP_KEYS="f669240cc4db7c3381480b,83c62f7581234885o3t0mn"
- RUN npm install --global --force yarn
- #TODO improve -> COPY only packages and remove . . in dev copy files that are needed to run npm run develop, and in production copy all files
- #COPY ./package.json .
- #COPY ./package-lock.json .
- COPY . .
- RUN yarn install --network-timeout 100000
- RUN apk del .gyp
- RUN NODE_ENV=production yarn build
- EXPOSE 1337
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement