mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
First version of the dockerfiles, following the principle of single responisbility, server and client get a Dockerfile each that can latter be used in a docker compose
This commit is contained in:
parent
8f878be720
commit
ad9b2e6aa5
2 changed files with 21 additions and 0 deletions
9
client/Dockerfile
Normal file
9
client/Dockerfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
FROM node:current-alpine
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
COPY . .
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD [ "npm", "run", "build" ]
|
||||
12
server/Dockerfile
Normal file
12
server/Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM node:current-alpine
|
||||
|
||||
WORKDIR /server
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD [ "node", "build/server.js" ]
|
||||
Loading…
Reference in a new issue