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