20 lines
246 B
Docker
20 lines
246 B
Docker
|
FROM node:20-alpine3.19
|
||
|
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
COPY package*.json ./
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
COPY . .
|
||
|
|
||
|
RUN npm install -g typescript
|
||
|
|
||
|
RUN tsc
|
||
|
|
||
|
# WORKDIR /usr/src/app/out
|
||
|
|
||
|
EXPOSE 3000
|
||
|
|
||
|
# CMD [ "node", "--env-file=../.env", "." ]
|
||
|
CMD [ "sh", "./run.sh" ]
|