Skip to content

Commit b2ee225

Browse files
committed
docker alpine
1 parent 4ab0acf commit b2ee225

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

.env

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ VUE_APP_GITHUB_TOKEN=
1919

2020
# GitHub Api Url
2121
# for proxy api - set to /api/github defaults to https://api.github.com
22-
VUE_APP_GITHUB_API=
22+
VUE_APP_GITHUB_API=
23+
24+
# Random string used in API to secure session, use when VUE_APP_GITHUB_API=/api/github
25+
#SESSION_SECRET=randomstring

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ pnpm-debug.log*
2525

2626
api/public
2727
test.http
28+
/test-results/
29+
/playwright-report/
30+
/blob-report/
31+
/playwright/.cache/

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Build the Vue.js application
2-
FROM node:22 AS build-stage
2+
FROM node:23-alpine AS build-stage
33
WORKDIR /app
44
COPY package*.json ./
55
RUN npm install

api.Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Build the Vue.js application
2-
FROM node:23 AS build-stage
2+
FROM node:23-alpine AS build-stage
33

44
USER node
55
WORKDIR /app
@@ -10,18 +10,17 @@ COPY --chown=1000:1000 . .
1010
RUN npm run build
1111

1212
# Stage 2: Prepare the Node.js API
13-
FROM node:23 AS api-stage
13+
FROM node:23-alpine AS api-stage
1414

1515
WORKDIR /api
1616

1717
# Copy package.json and other necessary files for the API
1818
COPY --chown=1000:1000 api/package*.json ./
1919
RUN npm install && \
2020
chown -R 1000:1000 /api && \
21-
apt-get update && \
22-
apt-get install -y --no-install-recommends gettext-base && \
23-
apt-get clean && \
24-
rm -rf /var/lib/apt/lists/*
21+
apk update && \
22+
apk add --no-cache gettext && \
23+
rm -rf /var/cache/apk/*
2524

2625
# Copy the rest of your API source code
2726
COPY --chown=1000:1000 api/ .

api/docker-entrypoint.api/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
configTemplateFile=/api/app-config.template.js
44
configTargetFile=/api/public/assets/app-config.js

0 commit comments

Comments
 (0)