Skip to content

Commit

Permalink
chore(release): create a docker image to facilitate the update-copyri…
Browse files Browse the repository at this point in the history
…ght step
  • Loading branch information
AndyZhang0707 authored and ADD-SP committed Oct 17, 2024
1 parent 8afccbc commit 07b3c83
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:latest AS expat-build

ARG expat_version=2.6.3

SHELL ["/bin/bash", "-c"]

WORKDIR /workspace

RUN apt update \
&& apt install -y curl

RUN curl -L https://github.com/libexpat/libexpat/releases/download/R_${expat_version//./_}/expat-${expat_version}.tar.gz | tar -xz \
&& cd expat-${expat_version} \
&& apt install -y build-essential \
&& ./configure --prefix=/expat_lib \
&& make && make install

FROM ubuntu:latest

COPY --from=expat-build /expat_lib /expat_lib

RUN apt update && apt install -y curl libssl-dev libyaml-dev lua5.4 luarocks

WORKDIR /workspace
CMD ["/bin/bash", "-c", "OPENSSL_DIR=/usr EXPAT_DIR=/expat_lib scripts/update-copyright"]

VOLUME /workspace

0 comments on commit 07b3c83

Please sign in to comment.