mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 14:17:56 +08:00
19 lines
390 B
Docker
19 lines
390 B
Docker
FROM --platform=$BUILDPLATFORM node:16.16-alpine as build
|
|
|
|
WORKDIR /app
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
|
|
COPY package.json ./
|
|
COPY package-lock.json ./
|
|
|
|
RUN npm ci --silent
|
|
COPY . ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:stable-alpine
|
|
COPY --from=build /app/dist/sdk.* /usr/share/nginx/html
|
|
|
|
COPY nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|