You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
710 B

FROM node:12.16.3-alpine
# install simple http server for serving static content
RUN yarn global add http-server
# make the 'app' folder the current working directory
WORKDIR /app
# copy 'package.json'
COPY package.json ./
# copy 'yarn.lock'
COPY yarn.lock ./
# install dependencies
RUN yarn
# copy project files and folders to the current working directory (i.e. 'app' folder)
COPY . .
# Set staging env variable if building for testnet.getumbrel.com
# ENV STAGING_DEPLOYMENT=true
# build app for production
RUN yarn build
# copy index.html to 404.html as http-server serves 404.html on all non "/" routes
RUN cp ./dist/index.html ./dist/404.html
EXPOSE 3004
CMD [ "http-server", "-p 3004", "dist" ]