forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 753 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu
# Install dependencies.
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3-pip python3-tk texlive-latex-base latexmk git emacs vim locales
# Configure UTF-8 encoding.
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Make python3 default
RUN rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python
# Install Cirq with the needed Python libraries.
RUN pip3 install cirq
RUN git clone -n --depth=1 https://github.com/quantumlib/Cirq && cd Cirq && git checkout HEAD -- examples && mv examples / && cd .. && rm -r -f Cirq
WORKDIR /examples
EXPOSE 8888