File tree 5 files changed +2145
-3209
lines changed
5 files changed +2145
-3209
lines changed Original file line number Diff line number Diff line change
1
+ web /node_modules
2
+ web /build
3
+ web /dist
4
+ web /.env_example
Original file line number Diff line number Diff line change 1
1
# ## FRONT BUILD START ###
2
- FROM --platform=$BUILDPLATFORM node:16-alpine as front
3
- COPY ./web /app
2
+ FROM --platform=$BUILDPLATFORM node:16-alpine AS front
3
+
4
4
WORKDIR /app
5
+
6
+ ARG REACT_APP_SERVER_HOST=
7
+ ARG REACT_APP_TMDB_API_KEY=
8
+ ARG PUBLIC_URL=
9
+
10
+ ENV REACT_APP_SERVER_HOST=$REACT_APP_SERVER_HOST
11
+ ENV REACT_APP_TMDB_API_KEY=$REACT_APP_TMDB_API_KEY
12
+ ENV PUBLIC_URL=$PUBLIC_URL
13
+
14
+ COPY ./web/package.json .
15
+ RUN yarn install
16
+
5
17
# Build front once upon multiarch build
6
- RUN yarn install && yarn run build
18
+ COPY ./web .
19
+ RUN yarn run build
7
20
# ## FRONT BUILD END ###
8
21
9
22
10
23
# ## BUILD TORRSERVER MULTIARCH START ###
11
- FROM --platform=$BUILDPLATFORM golang:1.21.2-alpine as builder
24
+ FROM --platform=$BUILDPLATFORM golang:1.21.2-alpine AS builder
12
25
13
26
COPY . /opt/src
14
27
COPY --from=front /app/build /opt/src/web/build
@@ -31,7 +44,7 @@ RUN apk add --update g++ \
31
44
32
45
33
46
# ## UPX COMPRESSING START ###
34
- FROM debian:buster-slim as compressed
47
+ FROM debian:buster-slim AS compressed
35
48
36
49
COPY --from=builder /opt/src/server/torrserver ./torrserver
37
50
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 30
30
"scripts" : {
31
31
"start" : " react-scripts start" ,
32
32
"build" : " react-scripts build" ,
33
- "build-js" : " yarn run build && npx gulp" ,
34
33
"test" : " react-scripts test" ,
35
34
"eject" : " react-scripts eject" ,
36
35
"lint" : " eslint --ext .js,.jsx src --color" ,
60
59
"eslint-config-airbnb" : " ^18.2.1" ,
61
60
"eslint-config-prettier" : " ^8.10.0" ,
62
61
"eslint-plugin-prettier" : " ^3.4.0" ,
63
- "gulp" : " ^4.0.2" ,
64
- "gulp-inline-source" : " ^4.0.0" ,
65
- "gulp-replace" : " ^1.1.4" ,
66
62
"prettier" : " ^2.8.8"
67
63
},
68
64
"description" : " " ,
You can’t perform that action at this time.
0 commit comments