2023-08-17 19:36:13 +00:00
|
|
|
# Build
|
2023-08-17 19:34:45 +00:00
|
|
|
FROM node:18-alpine3.15 as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN rm -rf node_modules && rm -rf build && yarn install
|
|
|
|
RUN yarn build
|
|
|
|
|
2023-08-17 19:36:13 +00:00
|
|
|
# Run
|
2023-08-17 19:34:45 +00:00
|
|
|
FROM cerc/webapp-base:local
|
|
|
|
COPY config.yml /config
|
|
|
|
RUN mkdir -p /data
|
|
|
|
COPY --from=builder /app/build /data
|