-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile-legacy-java
52 lines (38 loc) · 1.29 KB
/
Dockerfile-legacy-java
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
41
42
43
44
45
46
47
48
49
50
51
52
# namin/io.livecode.ch
FROM ubuntu:12.04
MAINTAINER Nada Amin, [email protected]
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common
RUN apt-get install locales
RUN locale-gen en_US en_US.UTF-8
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update
RUN apt-get install -y curl wget
RUN apt-get install -y git subversion
RUN apt-get install -y unzip
RUN apt-get install -y sed gawk
RUN mkdir /code
## Java ##
RUN apt-get install -y openjdk-6-jdk
RUN apt-get install -y openjdk-7-jdk
#RUN apt-get install -y openjdk-8-jdk
#RUN apt-get install -y openjdk-9-jdk
#RUN apt-get install -y openjdk-10-jdk
#RUN apt-get install -y openjdk-11-jdk
## user runner ##
RUN apt-get install -y sudo
RUN apt-get install -y dos2unix
RUN useradd -m -d /home/runner -s /bin/bash runner
## Install io.livecode.ch scripts ##
ADD dkr/livecode-install /usr/local/bin/livecode-install
ADD dkr/livecode-run /usr/local/bin/livecode-run
## From now on, everything is executed as user runner ##
ENV HOME /home/runner
RUN env
RUN sudo -u runner mkdir /home/runner/bin
RUN sudo -u runner mkdir /home/runner/files