Hotfix/Cache bust all js files (#21)
Reviewed-on: #21 Co-authored-by: Juan Sebastian Montoya <juansmm@outlook.com> Co-committed-by: Juan Sebastian Montoya <juansmm@outlook.com>
This commit is contained in:
parent
9739d5e8e9
commit
98ec60641d
3 changed files with 64 additions and 5 deletions
|
|
@ -11,6 +11,11 @@ RUN printf '{"version":"%s","buildDate":"%s"}\n' "${VERSION}" "${BUILD_DATE}" >
|
|||
COPY index.html /usr/share/nginx/html/
|
||||
COPY src/ /usr/share/nginx/html/src/
|
||||
|
||||
# Copy and run cache busting script (bash/sed - no external dependencies needed)
|
||||
COPY build-cache-bust.sh /tmp/build-cache-bust.sh
|
||||
RUN chmod +x /tmp/build-cache-bust.sh && \
|
||||
/tmp/build-cache-bust.sh "${VERSION}" /usr/share/nginx/html
|
||||
|
||||
# Copy nginx configuration
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue