-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (45 loc) · 801 Bytes
/
Dockerfile
File metadata and controls
51 lines (45 loc) · 801 Bytes
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
FROM centos:centos7
ENV PREMAKE_VERSION="5.0.0-alpha15"
##
# Update system
##
RUN \
yum update -y && \
yum upgrade -y
##
# Install packages
##
RUN \
yum install -y \
gcc \
gcc-c++ \
make \
kernel-devel \
postgresql-libs \
postgresql-dev \
wget \
curl \
tar
##
# Add premake5 to /usr/local/bin
##
RUN \
mkdir premake5 && \
cd premake5 && \
wget https://github.com/premake/premake-core/releases/download/v${PREMAKE_VERSION}/premake-${PREMAKE_VERSION}-linux.tar.gz && \
tar -zxvf premake-${PREMAKE_VERSION}-linux.tar.gz && \
cp premake5 /usr/local/bin && \
cd .. && \
rm -rf premake5
##
# Configure workdir
##
WORKDIR /app
COPY . /app
##
# Start building...
##
RUN \
premake5 gmake2 && \
cd build && \
make