-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): create a docker image to facilitate the update-copyri…
…ght step
- Loading branch information
1 parent
8afccbc
commit 07b3c83
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |