This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
FROM node:current-alpine
|
||||
|
||||
WORKDIR /var/www
|
||||
COPY . .
|
||||
|
||||
# Copy all build and modules
|
||||
COPY package.json dist .
|
||||
|
||||
# Open port
|
||||
EXPOSE 3000
|
||||
CMD npm start
|
||||
|
||||
# Serve
|
||||
CMD node dist
|
||||
|
||||
VOLUME ["/var/www"]
|
||||
|
||||
Reference in New Issue
Block a user