forked from alexzeitgeist/docker-bcompare
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (32 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
40 lines (32 loc) · 1.13 KB
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
33
34
35
36
37
38
39
40
# vim:set ft=dockerfile:
# VERSION 1.1
# AUTHOR: Alexander Turcic <alex@zeitgeist.se>
# DESCRIPTION: Beyond Compare in a Docker container
# TO_BUILD: docker build --rm -t zeitgeist/docker-bcompare .
# SOURCE: https://github.com/alexzeitgeist/docker-bcompare
# Pull base image.
FROM debian:jessie
MAINTAINER Alexander Turcic "alex@zeitgeist.se"
ENV BCOMPARE_URL https://www.scootersoftware.com/bcompare-4.2.4.22795_amd64.deb
# Install dependencies.
RUN \
apt-get update && \
apt-get install -y wget && \
apt-get install fonts-inconsolata && \
wget "${BCOMPARE_URL}" -O bcompare.deb && \
apt-get purge -y --auto-remove wget && \
{ dpkg -i bcompare.deb || true; } && \
rm bcompare.deb && \
apt-get install -y -f && \
rm -rf /var/lib/apt/lists/*
# Setup user environment. Replace 1000 with your user / group id.
RUN \
export uid=1000 gid=1000 && \
groupadd --gid ${gid} user && \
useradd --uid ${uid} --gid ${gid} --create-home user
USER user
WORKDIR /home/user
VOLUME /home/user
# Enable below if we want to supply our license file
# COPY BC4Key.txt /usr/lib/beyondcompare/
CMD ["/usr/bin/bcompare"]