mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-01-26 14:50:01 +00:00
add docker
This commit is contained in:
16
scraper/Dockerfile
Normal file
16
scraper/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
FROM node:lts-alpine AS base
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
FROM base AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:lts-alpine AS runner
|
||||
WORKDIR /app
|
||||
COPY --from=base /app/node_modules ./node_modules
|
||||
COPY --from=build /app/dist .
|
||||
ENV DEBUG=olympics-calendar:*
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user