mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2025-12-18 21:27:43 +00:00
18 lines
440 B
Docker
18 lines
440 B
Docker
FROM node:20-alpine AS builder
|
|
RUN apk update && apk add --no-cache python3 make g++
|
|
COPY . /opt/app
|
|
WORKDIR /opt/app/
|
|
RUN npm install
|
|
RUN npm run build
|
|
RUN npm prune
|
|
|
|
FROM node:20-alpine AS webapp
|
|
RUN apk add curl
|
|
WORKDIR /opt/app
|
|
COPY . /opt/app
|
|
COPY --from=builder /opt/app/node_modules ./node_modules
|
|
COPY --from=builder /opt/app/dist ./dist
|
|
COPY ./entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
ENTRYPOINT ["/entrypoint.sh"]
|