Made docker stuff better
This commit is contained in:
parent
5a826c7b39
commit
d78a10f72e
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
||||
.git
|
||||
.vscode
|
||||
node_modules
|
@ -1,10 +1,12 @@
|
||||
FROM node:alpine
|
||||
|
||||
RUN npm install --global yarn
|
||||
|
||||
ADD dist/ /app/dist
|
||||
ADD public/ /app/public
|
||||
ADD package.json /app/
|
||||
ADD package.json yarn.lock /app/
|
||||
WORKDIR /app/
|
||||
RUN npm install --production
|
||||
RUN yarn install --production
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT [ "npm", "run", "start" ]
|
||||
ENTRYPOINT [ "npm", "run", "start" ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user