File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ WORKDIR /app
8
8
COPY package.json pnpm-lock.yaml ./
9
9
RUN npm install -g pnpm && pnpm i --frozen-lockfile
10
10
COPY . .
11
+ ARG BASE_URL
12
+ ENV BASE_URL=${BASE_URL}
11
13
RUN pnpm build
12
14
13
15
# production stage
14
16
FROM nginx:stable-alpine AS production-stage
17
+ ARG BASE_URL
18
+ ENV BASE_URL=${BASE_URL}
15
19
COPY --from=build-stage /app/dist /usr/share/nginx/html
16
20
COPY nginx.conf /etc/nginx/conf.d/default.conf
17
21
EXPOSE 80
Original file line number Diff line number Diff line change @@ -10,6 +10,14 @@ You can use my image in your docker-compose file if you want an update to date v
10
10
11
11
Almost [ all tools PR of it-tools] ( https://github.com/CorentinTh/it-tools/pulls ) .
12
12
13
+ ## Build docker image for a subfolder
14
+
15
+ According to https://github.com/CorentinTh/it-tools/pull/461#issuecomment-1602506049 :
16
+ ```
17
+ docker build -t it-tools --build-arg BASE_URL="/my-folder/" .
18
+ docker run -d --name it-tools --restart unless-stopped -p 8080:80 it-tools
19
+ ```
20
+
13
21
## Installation methods
14
22
15
23
| Docker Image | Local Installation |
You can’t perform that action at this time.
0 commit comments