diff --git a/Dockerfile b/Dockerfile index 5c87b6b..bc58982 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]