mirror of
https://github.com/solero/wand.git
synced 2024-11-21 13:07:22 +00:00
Update Dockerfile to auto switch the architecture
This commit is contained in:
parent
72ca45479b
commit
7eda559dd0
@ -1,7 +1,6 @@
|
||||
FROM nginx:1.17.10-alpine
|
||||
|
||||
ENV DOCKERIZE_VERSION v0.6.1
|
||||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
||||
|
||||
ENV DOCKERIZE_VERSION v0.7.0
|
||||
RUN ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& tar -C /usr/local/bin -xzvf dockerize-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz \
|
||||
&& rm dockerize-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz
|
||||
|
Loading…
Reference in New Issue
Block a user