2 changed files with 18 additions and 0 deletions
@ -0,0 +1,12 @@ |
|||
FROM node:8-onbuild AS build |
|||
|
|||
COPY . /app |
|||
WORKDIR /app |
|||
|
|||
RUN npm install |
|||
|
|||
FROM node:8-alpine |
|||
COPY --from=build /app /app |
|||
WORKDIR /app |
|||
|
|||
CMD node app.js -p 3000 |
@ -0,0 +1,6 @@ |
|||
version: "3.1" |
|||
services: |
|||
wetty: |
|||
build: . |
|||
ports: |
|||
- "3000:3000" |
Loading…
Reference in new issue