From ad3d4595710880c3a1e3404f976dc9b233da0903 Mon Sep 17 00:00:00 2001 From: Aly Smith <63546997+alyssadev@users.noreply.github.com> Date: Sun, 26 May 2024 11:21:46 +1000 Subject: Create captain-definition for caprover/one-click-apps (#1106) * Create captain-definition A captain-definition file will help users host their own repository on their CapRover instances * Pinned node to 22.2.0-bookworm --- captain-definition | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 captain-definition (limited to 'captain-definition') diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..8f9a755 --- /dev/null +++ b/captain-definition @@ -0,0 +1,12 @@ +{ + "schemaVersion": 2, + "dockerfileLines": [ + "FROM node:22.2.0-bookworm as build", + "COPY . /app", + "WORKDIR /app", + "RUN npm i", + "RUN npm run build", + "FROM nginx:mainline-alpine-slim", + "COPY --from=build /app/dist /usr/share/nginx/html" + ] +} -- cgit v1.2.3