Skip to content

Commit fb06f42

Browse files
committed
Updated Dockerfile.standalone to allow giving a custom vhost
Signed-off-by: Vincent Composieux <[email protected]>
1 parent b08906a commit fb06f42

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

Dockerfile.standalone

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ RUN --mount=type=cache,target=/go/pkg/mod \
1818

1919
FROM node:19.4-alpine as frontend-builder
2020

21+
ARG REACT_APP_API_BASE_URI=http://localhost:8080/v1
22+
23+
ENV REACT_APP_API_BASE_URI=$REACT_APP_API_BASE_URI
24+
2125
WORKDIR /app
2226

2327
COPY ./frontend/public ./public/
@@ -33,6 +37,7 @@ FROM nginx:1.23-alpine
3337

3438
ARG GRPC_SERVER_ADDR=:8081
3539
ARG HTTP_SERVER_ADDR=:8080
40+
ARG NGINX_VHOST=./frontend/.docker/vhost.demo.conf
3641

3742
ENV GRPC_SERVER_ADDR=$GRPC_SERVER_ADDR
3843
ENV HTTP_SERVER_ADDR=$HTTP_SERVER_ADDR
@@ -41,7 +46,7 @@ COPY --from=backend-builder /project/authz /authz
4146
COPY --from=frontend-builder /app/build /usr/share/nginx/html
4247

4348
COPY ./.docker/cmd.sh /cmd.sh
44-
COPY ./frontend/.docker/vhost.conf /etc/nginx/conf.d/default.conf
49+
COPY ${NGINX_VHOST} /etc/nginx/conf.d/default.conf
4550

4651
EXPOSE 80 ${GRPC_SERVER_ADDR} ${HTTP_SERVER_ADDR}
4752

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $ docker run --rm \
6767
-p 8080:8080 \
6868
-p 8081:8081 \
6969
-p 3000:80 \
70-
ekofr/authz:v0.0.1-standalone
70+
ekofr/authz:v0.2.0-standalone
7171
```
7272

7373
Here, we use SQLite in-memory as database.

backend/root-journal

-28.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)