Kaynağa Gözat

Added Dockerfile

Dorin Paslaru 8 yıl önce
ebeveyn
işleme
4cee086424
2 değiştirilmiş dosya ile 27 ekleme ve 0 silme
  1. 6 0
      .dockerignore
  2. 21 0
      Dockerfile

+ 6 - 0
.dockerignore

@@ -0,0 +1,6 @@
+.git
+.gitignore
+.editorconfig
+node_modules
+*.log
+*.md

+ 21 - 0
Dockerfile

@@ -0,0 +1,21 @@
+FROM node:7.9.0-alpine
+
+# Set a working directory
+WORKDIR /usr/src/app
+
+COPY ./build/package.json .
+COPY yarn.lock .
+
+# Set CORIOLIS_URL
+ENV CORIOLIS_URL http://127.0.0.1
+COPY ./src/config.sample.js ./src/config.js
+
+# Install Node.js dependencies
+RUN yarn install --production --no-progress
+
+# Copy application files
+COPY ./build .
+
+EXPOSE 3000
+
+CMD [ "node", "server.js" ]