mirror of
https://github.com/blueedgetechno/windows11
synced 2026-11-26 17:28:19 +08:00
23 lines
514 B
Docker
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"]
|