community-app/Dockerfile
renovate[bot] 14c33ae04c
Update nginx Docker tag to v1.19.2 (#3296)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-17 10:28:22 -07:00

20 lines
468 B
Docker

FROM timbru31/ruby-node:2.7 as builder
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
ENV PATH /usr/src/app/node_modules/.bin:$PATH
COPY package.json /usr/src/app/package.json
RUN npm install -g bower
RUN npm install -g grunt-cli
COPY . /usr/src/app
RUN bower --allow-root install
RUN npm install
RUN bundle install
RUN grunt prod
FROM nginx:1.19.2
COPY --from=builder /usr/src/app/dist/community-app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]