mirror of https://github.com/JoshKarpel/spiel
Container image improvements (#17)
parent
900a71dd03
commit
cfbcb669e5
@ -1,10 +1,21 @@
|
||||
FROM python:3.9
|
||||
|
||||
ENV COLORTERM=truecolor
|
||||
RUN : \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y vim emacs nano \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& :
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . /app/spiel
|
||||
RUN pip install --no-cache-dir /app/spiel
|
||||
RUN : \
|
||||
&& pip install --no-cache-dir /app/spiel ipython \
|
||||
&& spiel version \
|
||||
&& :
|
||||
|
||||
ENV COLORTERM=truecolor \
|
||||
EDITOR=/usr/bin/vim
|
||||
|
||||
CMD ["spiel", "demo", "present"]
|
||||
|
@ -1,6 +1,8 @@
|
||||
set -xeu
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
TAG="spiel:test"
|
||||
|
||||
docker build -f docker/Dockerfile -t "$TAG" .
|
||||
docker run -it --rm "$TAG" spiel version
|
||||
docker run -it --rm "$TAG" $@
|
||||
|
Loading…
Reference in New Issue