Merge pull request 'feat(docker): add production docker setup and container git metadata tracking' (#45) from git-info-container into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-store-ui/pulls/45 Reviewed-by: Amit Salunke <amit@noreply.localhost>
This commit is contained in:
commit
da01c237d0
|
|
@ -27,3 +27,7 @@ dist-ssr
|
||||||
.env
|
.env
|
||||||
.env.*
|
.env.*
|
||||||
!.env.example
|
!.env.example
|
||||||
|
|
||||||
|
# Generated Git Info
|
||||||
|
.git_*_info
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,9 @@ RUN rm /etc/nginx/conf.d/default.conf
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
# Copy git info metadata if generated on host
|
||||||
|
COPY .git_store_info* /app/.git_store_info
|
||||||
|
|
||||||
RUN ln -sf /usr/share/nginx/html /usr/share/nginx/html/store
|
RUN ln -sf /usr/share/nginx/html /usr/share/nginx/html/store
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue