Files
lunasea/lunasea-notification-service/Dockerfile
2025-04-02 21:53:39 -04:00

16 lines
437 B
Docker

FROM node:18-alpine
LABEL org.opencontainers.image.source="https://github.com/JagandeepBrar/LunaSea-Notification-Service"
# Install packages, copy data, build project
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN npm prune --production
# Add Tini
RUN apk add --no-cache tini
ENTRYPOINT ["/sbin/tini", "--"]
# Start the docker version, expose port 9000
CMD ["npm", "run", "docker"]
EXPOSE 9000