Haris Razis
4 years ago
3 changed files with 8 additions and 7 deletions
@ -1,13 +1,15 @@ |
|||
FROM node:latest |
|||
|
|||
WORKDIR /usr/src/app |
|||
WORKDIR /usr/src/anchiale |
|||
|
|||
COPY package*.json ./ |
|||
|
|||
RUN npm install |
|||
RUN npm install && npm install typescript -g |
|||
|
|||
COPY . . |
|||
|
|||
EXPOSE 3000 |
|||
|
|||
ENTRYPOINT npm run start |
|||
RUN tsc |
|||
|
|||
CMD ["node", "./build/index.js"] |
@ -1,2 +1,2 @@ |
|||
docker build -t xrazis/server . |
|||
docker run -d -p 3000:3000 xrazis/server |
|||
docker run -d -p 8087:3000 xrazis/server |
Loading…
Reference in new issue