Sign inSign up

valda/react-docker-sample

By valda

Updated almost 7 years ago

Image
0

143

valda/react-docker-sample repository overview

image is based on this Dockerfile

# build environment
FROM node:12.2.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json /app/package.json
RUN npm install --silent
RUN npm install [email protected] -g --silent
COPY . /app
RUN npm run build

# production environment (non-root container)
FROM bitnami/nginx:1.16.1
COPY --from=build --chown=1001:1001 /app/build /opt/bitnami/nginx/html
USER 1001
EXPOSE 8080
CMD ["/run.sh"]

Tag summary

Content type

Image

Digest

Size

32.1 MB

Last updated

almost 7 years ago

docker pull valda/react-docker-sample