Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Change base image and bump py-scale-codec #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
# base image
FROM python:3.6.4-alpine
FROM python:3.6-buster
ENV PYTHONUNBUFFERED 1

# set working directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN apk add --no-cache --virtual .build-deps gcc libc-dev git
RUN apt-get install -y gcc libc-dev git

RUN pip3 install --upgrade pip

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly && cp $HOME/.cargo/bin/* /usr/bin/

ENV RUSTFLAGS="-C target-feature=-crt-static"

# add requirements
COPY ./requirements.txt /usr/src/app/requirements.txt

# install requirements
RUN pip3 install -r requirements.txt

RUN apk del .build-deps gcc libc-dev git
RUN apt-get remove -y gcc libc-dev git

# add app
COPY . /usr/src/app
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ urllib3==1.25.3
xxhash==1.3.0
zipp==0.5.2

scalecodec>=0.9.36
scalecodec>=0.9.46
substrate-interface>=0.9.9