Files
windows11/Dockerfile
T
2021-10-29 17:30:31 +01:00

23 lines
514 B
Docker

FROM node:14-alpine3.14
# set working directory
WORKDIR /usr/src/windows11/
# setup env vars
ENV PATH /app/node_modules/.bin:$PATH
ENV NODE_ENV=production
LABEL org.opencontainers.image.description A recreation of windows 11 in react
LABEL org.opencontainers.image.authors blueedge
# install http server
RUN npm install -g serve
# add app (add .dockerignore to remove useless files from the image)
COPY . .
# expose port
EXPOSE 3000
# start app
ENTRYPOINT ["serve", "/usr/src/windows11/build", "-l", "3000"]