all repos — website @ 83d1af3cfbfe4070e5004596865c0b7015f79eff

My website

Steamline docker build

Alan Pearce
commit

83d1af3cfbfe4070e5004596865c0b7015f79eff

parent

932915406a6105b93de833c32b9ce6a07ebca6c1

1 file changed, 5 insertions(+), 2 deletions(-)

changed files
M DockerfileDockerfile
@@ -48,7 +48,9 @@
RUN apk add --no-cache prettier@testing make fd brotli gzip zstd COPY --link Makefile ./ -COPY --from=ssg /web ./ +COPY --from=ssg /web/config.toml ./ +COPY --from=ssg /web/content content +COPY --from=ssg /web/public public RUN make -j4 format compress
@@ -56,8 +58,9 @@ # Final stage for app image
FROM base # Copy built application +COPY config.toml /app/ COPY --from=build /app /app -COPY --from=postprocess /web/ /app/website +COPY --from=postprocess /web/public /app/public # Start the server by default, this can be overwritten at runtime EXPOSE 3000