File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ FROM node:slim
55ARG APP_TITLE="STAC Manager"
66ARG APP_DESCRIPTION="A web application for managing STAC catalogs"
77ARG REACT_APP_STAC_API="https://earth-search.aws.element84.com/v0"
8+ ARG PUBLIC_URL="http://127.0.0.1:8080"
89
910ENV APP_TITLE=${APP_TITLE}
1011ENV APP_DESCRIPTION=${APP_DESCRIPTION}
1112ENV REACT_APP_STAC_API=${REACT_APP_STAC_API}
12- ENV PUBLIC_URL="http://127.0.0.1:8080"
13+ ENV PUBLIC_URL=${PUBLIC_URL}
1314
1415# Set the working directory
1516WORKDIR /app
@@ -25,6 +26,7 @@ RUN npm i -g http-server
2526# Create a start script that respects runtime environment variables
2627RUN echo '#!/bin/sh\n \
2728npm run all:build\n \
29+ cp packages/client/dist/index.html packages/client/dist/404.html\n \
2830http-server -p 80 packages/client/dist' > /app/start.sh
2931
3032RUN chmod +x /app/start.sh
You can’t perform that action at this time.
0 commit comments