mirror of
https://github.com/solero/houdini.git
synced 2024-11-09 20:58:20 +00:00
Update Dockerfile to auto switch the architecture
This commit is contained in:
parent
e2ce0fa370
commit
f893f273e0
@ -1,4 +1,5 @@
|
|||||||
FROM python:3-alpine
|
FROM python:3-alpine
|
||||||
|
ARG TARGETARCH
|
||||||
|
|
||||||
RUN apk add \
|
RUN apk add \
|
||||||
openssl \
|
openssl \
|
||||||
@ -10,10 +11,10 @@ RUN apk add \
|
|||||||
|
|
||||||
WORKDIR /usr/src/houdini
|
WORKDIR /usr/src/houdini
|
||||||
|
|
||||||
ENV DOCKERIZE_VERSION v0.6.1
|
ENV DOCKERIZE_VERSION v0.7.0
|
||||||
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
RUN ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz \
|
||||||
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz \
|
||||||
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
&& rm dockerize-alpine-linux-$ARCH-$DOCKERIZE_VERSION.tar.gz
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user