keycloak-theme/Dockerfile

13 lines
344 B
Docker
Raw Normal View History

2022-09-06 17:22:23 +00:00
# build environment
2024-02-07 09:49:36 +00:00
FROM node:18-alpine as build
2022-09-06 17:22:23 +00:00
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
# production environment
FROM nginx:stable-alpine
COPY --from=build /app/dist /usr/share/nginx/html
2022-09-06 17:22:23 +00:00
COPY --from=build /app/nginx.conf /etc/nginx/conf.d/default.conf
CMD nginx -g 'daemon off;'