| 123456789101112131415161718 |
- FROM node:16 as nodebuild
- WORKDIR /app
- COPY dashboard .
- RUN npm i --legacy-peer-deps
- RUN npm run build
- # All build artifacts are built in github actions, and copied in
- # Ubuntu is used to match Github action, and use github action caching instead of docker caching
- FROM ubuntu as runner
- RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates tzdata
- WORKDIR /porter
- COPY bin/app /porter/
- COPY bin/migrate /porter/
- # COPY build/ /porter/static
- COPY --from=nodebuild /app/dashboard/build/ /porter/static
- RUN chmod +x /porter/app /porter/migrate
|