-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (32 loc) · 1.36 KB
/
Dockerfile
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
# Dockerfile to build the base for the go custombuilder
# The build logic is into build.sh
FROM registry.fedoraproject.org/f29/s2i-base:latest
ENV NAME=golang \
VERSION=1.11 \
ARCH=x86_64 \
HOME=/root
ENV SUMMARY="Platform for building and running Go $VERSION based applications" \
DESCRIPTION="Go $VERSION available as container is a base platform for \
building and running various Go $VERSION applications and frameworks. \
Go is an easy to learn, powerful, statically typed language in the C/C++ \
tradition with garbage collection, concurrent programming support, and memory safety features."
LABEL summary="$SUMMARY" \
description="$DESCRIPTION" \
io.k8s.description="$DESCRIPTION" \
io.k8s.display-name="Go $VERSION" \
io.openshift.tags="builder,golang,golang18,rh-golang18,go" \
com.redhat.component="$NAME" \
name="$FGC/$NAME" \
version="$VERSION" \
architecture="$ARCH" \
maintainer="pierluigi sforza <[email protected]>" \
usage="docker run $FGC/$NAME"
RUN INSTALL_PKGS="gettext automake make docker golang" && \
dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
dnf clean all -y
COPY build.sh /tmp/build.sh
RUN chmod +x /tmp/build.sh && \
chown -R 1001:0 /tmp/build.sh && \
chmod -R g+rw /tmp/build.sh
CMD ["/tmp/build.sh"]