Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile #14

Open
wants to merge 3 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
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.git
.gitignore
.dockerignore
Dockerfile
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM docker.io/library/python:2.7.18-slim-buster AS installer

RUN apt-get update \
&& apt-get install -y locate libgl1-mesa-glx \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/* \
&& updatedb

WORKDIR /app
COPY installer installer
RUN yes '' | python installer/malpem-install

# it'd be a better practice to put apt-get before malpem-install
# locate and updatedb are for the malpem-proot wrapper script

ENV PATH=/opt/malpem-1.3/bin:$PATH

CMD ["/opt/malpem-1.3/bin/malpem-proot"]