Browse Source

add docker

pull/75/head
Jelle van Snik 3 years ago
parent
commit
91283b277e
  1. 6
      .dockerignore
  2. 13
      dockerfile

6
.dockerignore

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
.git
node_modules
build
.env.local
.github
.vscode

13
dockerfile

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
FROM node:13.12.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package*.json ./
RUN yarn install
COPY . ./
RUN yarn build
# production environment
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Loading…
Cancel
Save