mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
16 lines
437 B
Docker
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
|