Dockerfile for web-app
Closed this issue · 1 comments
wutayng commented
Is your feature request related to a problem? Please describe.
I have attempted to modify different React Native Dockerfiles to successfully build an image with this sample - but without much success.
Describe the solution you'd like
An suggested Dockerfile for Image build
wutayng commented
The following Dockerfile worked for me to start the build
Need to add server for production, or just run in development
Edit based on node -v
# builder image
FROM node:12 AS builder
# set working directory
WORKDIR /app
# copy to /app
COPY . /app
# install app dependencies
RUN npm ci
# start web app
RUN npm run build