Sfoglia il codice sorgente

Added docker file

pull/110/head
Safet Purkovic 3 anni fa
parent
commit
737fb489ec
2 ha cambiato i file con 17 aggiunte e 0 eliminazioni
  1. 4
    0
      .dockerignore
  2. 13
    0
      Dockerfile

+ 4
- 0
.dockerignore Vedi File

@@ -0,0 +1,4 @@
node_modules
npm-debug.log
build
.dockerignore

+ 13
- 0
Dockerfile Vedi File

@@ -0,0 +1,13 @@
FROM node:16.19.0-alpine as build
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn
COPY . .
RUN yarn build
# production environment
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

Loading…
Annulla
Salva