-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (23 loc) · 856 Bytes
/
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
FROM ubuntu:18.04
MAINTAINER [email protected]
ENV LANG C.UTF-8
RUN apt-get -y update
RUN \
apt-get -y install git software-properties-common wget openssl ssh curl jq apt-utils unzip python-pip sudo goreleaser && \
apt-get clean && \
apt-get autoremove && \
pip install awscli --upgrade
RUN \
apt-get update
ENV GO_VERSION 1.18.3
RUN cd /home/${USER} && \
mkdir -p /home/${USER}/go && \
wget -O /tmp/go.tgz https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz && \
tar xzf /tmp/go.tgz && \
rm /tmp/go.tgz
ENV GOPATH=/project
RUN mkdir -p /project/src/github.com/karlmutch/duat && \
go get github.com/erning/gorun && \
cp -r /makisu-context/. /project/src/github.com/karlmutch/duat/.
WORKDIR /project/src/github.com/karlmutch/duat
CMD go mod vendor ; goreleaser release --rm-dist