Skip to content

Commit a6dc88b

Browse files
committed
Dockerize it
1 parent 5065312 commit a6dc88b

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules
2+
/static/main.js
3+
/static/main.js.map
4+
5+
/.git

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node
2+
WORKDIR /a
3+
COPY package.json yarn.lock ./
4+
RUN yarn
5+
COPY tsconfig.json ./
6+
COPY static/main.ts static/
7+
RUN yarn tsc
8+
9+
FROM nginx:alpine
10+
WORKDIR /usr/share/nginx/html
11+
COPY index.html ./
12+
COPY static/*.css static/*.jpg static/
13+
COPY --from=0 /a/static/main.js static/

0 commit comments

Comments
 (0)