If there are uncommitted changes in the app repository when building, then append `_uncommitted_<random>` to it to distinguish the image from one built from a clean checkout. Also change the version used when renaming a container on redeploy to distinguish and explain the version suffixes.
8 lines
145 B
Docker
8 lines
145 B
Docker
FROM nginx:1-alpine-slim
|
|
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
ARG COMMIT_SHA
|
|
RUN echo $COMMIT_SHA > /usr/share/nginx/html/version
|
|
|