Skip to content

Commit 7584684

Browse files
committed
v1 of the POC
1 parent 60a46f4 commit 7584684

File tree

9 files changed

+1183
-23
lines changed

9 files changed

+1183
-23
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
node_modules
3+
.github

api.Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Stage 1: Build the Vue.js application
2+
FROM node:14 as build-stage
3+
WORKDIR /app
4+
COPY package*.json ./
5+
RUN npm install
6+
COPY . .
7+
RUN npm run build
8+
9+
# Stage 2: Prepare the Node.js API
10+
FROM node:14 as api-stage
11+
WORKDIR /api
12+
# Copy package.json and other necessary files for the API
13+
COPY api/package*.json ./
14+
RUN npm install
15+
# Copy the rest of your API source code
16+
COPY api/ .
17+
18+
# Copy the built Vue.js app from the previous stage
19+
COPY --from=build-stage /app/dist /api/public
20+
21+
# Expose the port your API will run on
22+
EXPOSE 3000
23+
24+
# Command to run your API (and serve your Vue.js app)
25+
CMD ["node", "server.mjs"]

api/.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Client Id from GitHub App installed on the organization
2+
CLIENT_ID=
3+
4+
# Client Secret from GitHub App installed on the organization
5+
CLIENT_SECRET=
6+
7+
# Secret for the session
8+
SESSION_SECRET=

0 commit comments

Comments
 (0)