File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,13 @@ COPY . /React-TrashMail
29
29
30
30
WORKDIR /React-TrashMail/react
31
31
RUN yarn build
32
- RUN rm -rf ../mailserver/src/build/* && mkdir -p ../mailserver/src/build/ && cp -r build/* ../mailserver/src/build/
32
+
33
+ WORKDIR /React-TrashMail/mailserver
34
+ RUN rm -rf src/build/*
35
+ RUN mkdir -p src/build
36
+ RUN cp -r ../react/build/* src/build/
37
+
38
+ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
33
39
34
40
# Define mountable volume
35
41
VOLUME ["/React-TrashMail/mailserver/src/attachments" ]
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [ ! -f "$FIRST_RUN_FLAG" ]; then
19
19
cd /React-TrashMail/react
20
20
21
21
npx react-inject-env set
22
- mv ./build/env.js ../mailserver/build/
22
+ mv ./build/env.js ../mailserver/src/ build/
23
23
24
24
# Create the flag file to indicate completion of first run
25
25
touch " $FIRST_RUN_FLAG "
You can’t perform that action at this time.
0 commit comments