Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Docker support
  • Loading branch information
tdemin committed Sep 9, 2019
1 parent dec2aca commit a9e5501
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -0,0 +1 @@
node_modules
15 changes: 15 additions & 0 deletions Dockerfile
@@ -0,0 +1,15 @@
FROM node:10-alpine AS builder
ENV NODE_ENV production
ENV CI true
WORKDIR /app

COPY package.json yarn.lock tsconfig.json /app/
RUN yarn install

COPY public /app/public
COPY src /app/src
RUN yarn build

FROM nginx:1.16-alpine AS release

COPY --from=builder /app/build /usr/share/nginx/html
7 changes: 7 additions & 0 deletions doc/nginx.conf
@@ -0,0 +1,7 @@
server {
listen 80 default_server;
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
}
}

0 comments on commit a9e5501

Please sign in to comment.