Fela Maslen 5 年 前
コミット
49d5f8ba7d
2 ファイル変更21 行追加0 行削除
  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