-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.ci.build
42 lines (36 loc) · 1.04 KB
/
Dockerfile.ci.build
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
# We need a special Docker file for CircleCI since mounting folders is not
# possible.
# https://circleci.com/docs/2.0/building-docker-images/#mounting-folders
# For this reason we will need to use the COPY instruction in this file and the
# cp (copy) command.
#
# To use
# docker build -t c-os-build -f Dockerfile.ci.build .
# docker run --rm -v `pwd`:/app c-os-build
#
# To debug
# docker run --rm -it -v `pwd`:/app c-os-build /bin/sh
FROM lapinlabs/watcom
RUN apk add --no-cache --update \
scons \
nasm \
nodejs \
&& rm -rf /var/cache/apk/*
# Clone the PCJS project for json disk builder
RUN apk add --no-cache --update --virtual .build-deps \
git \
nodejs-npm \
g++ \
make \
linux-headers \
&& mkdir /usr/local/opt \
&& git clone https://github.com/jeffpar/pcjs.git /usr/local/opt/pcjs \
&& cd /usr/local/opt/pcjs \
&& npm install \
&& apk del .build-deps \
&& rm -rf /var/cache/apk/*
ENV PATH /root/opt/bin:$PATH
COPY . /app
WORKDIR /app
# Launch build process
CMD ["scons"]