File size: 615 Bytes
ac05177 41186fd ac05177 9815374 ac05177 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM node:lts AS BUILD_IMAGE
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/renqabs/gfa.git /app
WORKDIR /app
RUN yarn install --registry https://registry.npmmirror.com/ --ignore-engines && yarn run build
FROM node:lts-alpine
COPY --from=BUILD_IMAGE /app/configs /app/configs
COPY --from=BUILD_IMAGE /app/package.json /app/package.json
COPY --from=BUILD_IMAGE /app/dist /app/dist
COPY --from=BUILD_IMAGE /app/public /app/public
COPY --from=BUILD_IMAGE /app/node_modules /app/node_modules
WORKDIR /app
RUN mkdir -p /app/logs && chmod 777 /app/logs
EXPOSE 8000
CMD ["npm", "start"] |