Created a Dockerfile
This commit is contained in:
parent
12dbec32cb
commit
62f9831a05
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM node:20 AS build
|
||||
WORKDIR /usr/src/app
|
||||
COPY package.json .
|
||||
RUN npm install && npm install typescript -g
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:20-alpine
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json .
|
||||
RUN npm install --production
|
||||
|
||||
COPY --from=build /usr/src/app/dist dist
|
||||
|
||||
EXPOSE 8025
|
||||
CMD ["npm", "run", "start"]
|
Loading…
x
Reference in New Issue
Block a user