Skip to content

Instantly share code, notes, and snippets.

@ojacques
Created November 29, 2020 16:46
Show Gist options
  • Save ojacques/359d8aeb1d23757e886888cb1825711c to your computer and use it in GitHub Desktop.
Save ojacques/359d8aeb1d23757e886888cb1825711c to your computer and use it in GitHub Desktop.
Docker container to run tests on AWS Device Farm
```Dockerfile
FROM PYTHON:3.7-buster
RUN apt-get -qq -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \
jq \
curl \
less \
git \
vim \
wget \
procps \
zip \
unzip \
groff \
software-properties-common
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install && \
rm awscliv2.zip && \
aws --version
VOLUME /workspace
RUN python -m pip install --upgrade --ignore-installed pip
ENTRYPOINT [ "run-tests.sh" ]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment