File: Dockerfile

package info (click to toggle)
pinball-table-gnu 0.0.20200601-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,716 kB
  • sloc: cpp: 918; makefile: 118; sh: 26
file content (51 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download
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
#!/bin/echo docker build . -f
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: GPL-2

FROM debian:10
LABEL maintainer="Philippe Coval (rzr@users.sf.net)"

ENV DEBIAN_FRONTEND noninteractive
ENV LC_ALL en_US.UTF-8
ENV LANG ${LC_ALL}

RUN echo "# log: Configuring locales" \
  && set -x \
  && apt-get update -y \
  && apt-get install -y locales \
  && echo "${LC_ALL} UTF-8" | tee /etc/locale.gen \
  && locale-gen ${LC_ALL} \
  && dpkg-reconfigure locales \
  && sync

RUN echo "# log: Setup build system" \
  && set -x \
  && apt-get update -y \
  && apt-get install -y \
  make \
  sudo \
  && apt-get clean \
  && sync

ENV project pinball-table-gnu
ENV workdir /usr/local/opt/${project}/src/${project}

ADD debian/rules ${workdir}/debian/rules
ADD debian/Makefile ${workdir}/debian/Makefile
WORKDIR ${workdir}
RUN echo "# log: ${project}: Preparing sources" \
  && set -x \
  && ./debian/Makefile rule/setup \
  && sync

ADD . ${workdir}/
WORKDIR ${workdir}
RUN echo "# log: ${project}: Building sources" \
  && set -x \
  && ./debian/Makefile \
  && sudo debi \
  && dpkg -L ${project} \
  && dpkg -L ${project}-data \
  && sync

ENTRYPOINT [ "/usr/games/pinball" ]