Browse Source

docker file

Fela Maslen 5 years ago
parent
commit
49d5f8ba7d
2 changed files with 21 additions and 0 deletions
  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