Skip to content

Commit

Permalink
Move code so curl is present
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyBlinksma committed Dec 5, 2022
1 parent 4f66232 commit c763302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ RUN \
gpg --verify -v msodbcsql18_18.1.2.1-1_amd64.sig msodbcsql18_18.1.2.1-1_amd64.apk &&\
apk add --allow-untrusted msodbcsql18_18.1.2.1-1_amd64.apk &&\
rm msodbcsql18_18.1.2.1-1_amd64.apk &&\
curl https://files.pythonhosted.org/packages/80/cc/5d602c4326af9993f891eab1f25bd967f89785efc08a773353564cab2f01/pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -o pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl &&\
pip install pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl &&\
rm pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl &&\
apk del curl gnupg

#install other redependencies and copy application
WORKDIR /app
RUN curl https://files.pythonhosted.org/packages/80/cc/5d602c4326af9993f891eab1f25bd967f89785efc08a773353564cab2f01/pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -o pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl &&\
pip install pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl &&\
rm pyodbc-4.0.35-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
COPY pubkeys /app/pubkeys
Expand Down

0 comments on commit c763302

Please sign in to comment.