Commit 7664b23 1 parent aade493 commit 7664b23 Copy full SHA for 7664b23
File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ target "gateway-embedded-front" {
58
58
dockerfile = " gateway-embedded-front.dockerfile"
59
59
context = " docker"
60
60
contexts = {
61
- built_front = " target: front-nginx "
61
+ front = " ./ front"
62
62
gateway = " ./gateway"
63
63
}
64
64
}
Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
+ # ## FRONT BUILD STAGE
4
+
5
+ FROM node:18-alpine as front_build
6
+
7
+ WORKDIR /app
8
+
9
+ # Build dependencies
10
+ COPY --from=front package.json yarn.lock /app/
11
+ RUN yarn install
12
+
13
+ # Generate the licenses file and build
14
+ COPY --from=front . /app
15
+ RUN yarn generate-licenses && yarn build
16
+
3
17
# ## GATEWAY BUILD STAGE
4
18
5
19
FROM lukemathwalker/cargo-chef:latest AS chef
@@ -42,7 +56,7 @@ ENV OSRD_GIT_DESCRIBE=${OSRD_GIT_DESCRIBE}
42
56
43
57
# Copy the front
44
58
WORKDIR /srv
45
- COPY --from=built_front /srv /srv/front/
59
+ COPY --from=front_build /app/build /srv/front/
46
60
47
61
# Copy an example config file
48
62
COPY --from=gateway ./gateway.prod.sample.toml /gateway.sample.toml
You can’t perform that action at this time.
0 commit comments