Showing
2 changed files
with
24 additions
and
0 deletions
Dockerfile
0 → 100644
1 | +FROM node:14 | ||
2 | + | ||
3 | +LABEL title="TFT-Webserver" | ||
4 | +LABEL version="1.01" | ||
5 | + | ||
6 | +# set working directory | ||
7 | +WORKDIR /app | ||
8 | + | ||
9 | +# install modules and dependencies | ||
10 | +COPY package*.json ./ | ||
11 | +RUN npm install | ||
12 | + | ||
13 | +# copy source codes | ||
14 | +COPY ./ ./ | ||
15 | + | ||
16 | +# port-forward | ||
17 | +EXPOSE 8484 | ||
18 | + | ||
19 | +#start application | ||
20 | +CMD [ "npm", "start" ] | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment