mirror of
https://github.com/movie-web/simple-proxy.git
synced 2025-09-13 08:33:26 +00:00
add CI stuff
This commit is contained in:
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:18-alpine as base
|
||||
WORKDIR /app
|
||||
|
||||
# Build layer
|
||||
FROM base as build
|
||||
|
||||
COPY package-lock.json package.json ./
|
||||
RUN npm install --frozen-lockfile
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# Production layer
|
||||
FROM base as production
|
||||
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=build /app/.output ./.output
|
||||
|
||||
CMD ["node", ".output/server/index.mjs"]
|
Reference in New Issue
Block a user