-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
44 lines (39 loc) · 1.29 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
41
42
43
44
#################################################################
# #
# Copyright (c) 2019-2024 YottaDB LLC and/or its subsidiaries. #
# All rights reserved. #
# #
# This source code contains the intellectual property #
# of its copyright holder(s), and is made available #
# under a license. If you do not know the terms of #
# the license, please stop and do not read further. #
# #
#################################################################
FROM yottadb/yottadb-base:latest-master
WORKDIR /data
# Install dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
wget \
ca-certificates \
git \
g++ \
gcc \
libc6-dev \
make \
pkg-config \
vim \
&& \
rm -rf /var/lib/apt/lists/*
# Install go
ENV GOPROXY https://proxy.golang.org/cached-only
ENV GOPATH /go
RUN mkdir /go
ENV GOLANG_VERSION 1.18.1
ENV PATH=$GOPATH/bin:/usr/local/go/bin:$PATH
RUN wget -O go.tgz -q https://golang.org/dl/go${GOLANG_VERSION}.linux-amd64.tar.gz && \
tar -C /usr/local -xzf go.tgz && \
rm go.tgz
# Setup YottaDB
ENV ydb_dir /data
ENV ydb_dist /opt/yottadb/current