Skip to content

Commit 3888ab1

Browse files
authored
Merge pull request #21 from nparquet/docker-packaging
Added simple docker packaging
2 parents 5e740aa + dfbad31 commit 3888ab1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.gitignore
3+
node_modules
4+
Dockerfile
5+
tests
6+
dist

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:10 as node-build
2+
WORKDIR /app
3+
COPY . /app
4+
RUN npm install && \
5+
BASE_URL="/" npm run build
6+
7+
FROM nginx:alpine
8+
COPY --from=node-build /app/dist /usr/share/nginx/html

0 commit comments

Comments
 (0)