licode-develop/Dockerfile
yangxin 9f96998eb8
Some checks failed
CI-build / build (18.x) (push) Has been cancelled
CI-type-checking / type-check (18.x) (push) Has been cancelled
CI-typos / Spell Check (push) Has been cancelled
Deploy / deploy (push) Has been cancelled
livecode代码开发分支
2025-06-11 21:29:36 +08:00

18 lines
562 B
Docker

FROM node:24.1.0-alpine3.21 AS build-stage
RUN apk update && apk add git
# set the working directory
WORKDIR /app
# Copy the working directory in the container
COPY . .
# Install the project dependencies
RUN npm install
# Build the application to the production mode to dist folder
RUN npm run build
# Use a lightweight web server to serve the built application
FROM httpd:2.4 AS production-stage
# Copy the build application from the previous stage to the Nginx container
COPY --from=build-stage /app/build /usr/local/apache2/htdocs/
CMD ["httpd-foreground"]