community-app/Dockerfile
renovate[bot] c4676b8e9d
Update nginx Docker tag to v1.19.1 (#3214)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-08-06 16:16:16 -07:00

20 lines
468 B
Docker

FROM timbru31/ruby-node:2.5 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.1
COPY --from=builder /usr/src/app/dist/community-app /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]