-
Notifications
You must be signed in to change notification settings - Fork 86
/
Dockerfile.arm
32 lines (24 loc) · 973 Bytes
/
Dockerfile.arm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Dockerfile for creating an image for testing python versions
#
# Notes:
# - this is not an optimized Dockerfile
# - it was built to provide a clean environment for running
# tests on a mac M1, but could probably work on an older mac as well
# - when running the tests, the makefile never exits at the end. For now,
# just kill the container
# Build: docker build --rm -t evalml_test . -f Dockerfile.arm
# Test: docker run --rm -it evalml_test make test
ARG VERSION=3.10-buster
FROM --platform=linux/x86_64 python:$VERSION
ARG DOCKER_ARM=1
ARG TIMEOUT=1200
RUN apt-get update && apt-get install -y git graphviz && rm -rf /var/lib/apt/lists/*
# Referenced in test_gen_utils.py to create a fixture, limiting chromium to a
# single process. This is needed for kaleido in a container on an M1
ENV DOCKER_ARM=$DOCKER_ARM
# Set the test timeout
ENV TIMEOUT=$TIMEOUT
WORKDIR /workspace
COPY . .
RUN make installdeps-dev && make installdeps-prophet
CMD ['bin/bash']