Fela Maslen hace 5 años
padre
commit
49d5f8ba7d
Se han modificado 2 ficheros con 21 adiciones y 0 borrados
  1. 1 0
      .dockerignore
  2. 20 0
      Dockerfile

+ 1 - 0
.dockerignore

@@ -0,0 +1 @@
+node_modules

+ 20 - 0
Dockerfile

@@ -0,0 +1,20 @@
+FROM node:10-alpine
+
+WORKDIR /opt/app
+
+RUN yarn global add serve
+
+COPY package.json ./
+COPY yarn.lock ./
+
+RUN yarn install --frozen-lockfile
+
+COPY src ./src
+COPY public ./public
+COPY tsconfig.json ./
+
+RUN yarn build
+
+EXPOSE 5000
+
+CMD serve -s build