File tree Expand file tree Collapse file tree 5 files changed +23
-20
lines changed
Expand file tree Collapse file tree 5 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1- VITE_API_URL = ${ API_URL }
1+ VITE_API_URL = {{ API_URL} }
22
3- VITE_SENTRY_DSN = ${ SENTRY_DSN }
3+ VITE_SENTRY_DSN = {{ SENTRY_DSN} }
44VITE_SENTRY_ENV = prod
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ RUN sed -i 's/\${/\\${/g' .env.production
99RUN npm install
1010RUN npm run build
1111
12- FROM nginx:stable -alpine
13- COPY --from=build /usr/frontend/dist /bin/www
14- COPY /config/nginx.conf /etc/nginx/conf.d/default.conf
15- COPY --from=build /usr/frontend/config/entrypoint.sh /bin
12+ FROM caddy:2 -alpine
13+ COPY --from=build /usr/frontend/dist /srv
14+ COPY /config/Caddyfile /etc/caddy/Caddyfile
15+ COPY --from=build /usr/frontend/config/entrypoint.sh /usr/local/ bin/
1616
1717RUN apk add --no-cache nodejs npm
1818RUN npm i envsub -g
19- RUN chmod +x /bin/entrypoint.sh
19+ RUN chmod +x /usr/local/ bin/entrypoint.sh
2020
21- ENTRYPOINT ["/bin/entrypoint.sh" ]
21+ ENTRYPOINT ["/usr/local/ bin/entrypoint.sh" ]
2222
2323EXPOSE 80
Original file line number Diff line number Diff line change 1+ :80 {
2+ root * /srv
3+ encode gzip
4+
5+ try_files {path} /index.html
6+ file_server
7+
8+ handle_errors {
9+ rewrite * /index.html
10+ file_server
11+ }
12+ }
Original file line number Diff line number Diff line change 11#! /bin/sh
2- for filename in /bin/www /assets/* .js; do
3- envsub $filename $filename
2+ for filename in /srv /assets/* .js; do
3+ envsub --syntax handlebars $filename $filename
44done
55
6- nginx -g ' daemon off; '
6+ caddy run --config /etc/caddy/Caddyfile
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments