Files
anonymous_github/Dockerfile
2024-04-01 10:27:18 +01:00

22 lines
374 B
Docker

FROM node:21-slim
ENV PORT 5000
EXPOSE $PORT
WORKDIR /app
COPY package.json .
COPY package-lock.json .
COPY tsconfig.json .
COPY healthcheck.js .
COPY src ./src
COPY public ./public
COPY index.ts .
COPY config.ts .
RUN npm install && npm run build && npm cache clean --force
COPY opentelemetry.js .
CMD [ "node", "--require", "./opentelemetry.js", "./build/index.js"]