-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.linux
More file actions
40 lines (32 loc) · 1.15 KB
/
Dockerfile.linux
File metadata and controls
40 lines (32 loc) · 1.15 KB
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
FROM golang:1.23
RUN apt-get clean \
&& apt-get \
-o Acquire::Check-Valid-Until=false \
-o Acquire::Check-Date=false \
-o Acquire::AllowInsecureRepositories=true \
-o Acquire::AllowDowngradeToInsecureRepositories=true \
update \
&& apt-get install -y --no-install-recommends --allow-unauthenticated coreutils jq apache2 \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb
# Install from repo
# RUN apt-get update && apt-get install -y \
# coreutils \
# jq \
# curl \
# tar \
# && rm -rf /var/lib/apt/lists/*
# ENV DGUIDE_VERSION=0.1.0
# ENV DGUIDE_URL=https://github.com/yourusername/dguide/releases/download/v${DGUIDE_VERSION}/dguide_${DGUIDE_VERSION}_darwin_amd64.tar.gz
# RUN mkdir -p /opt/dguide
# # Download and extract the package
# RUN curl -L ${DGUIDE_URL} -o /opt/dguide/dguide.tar.gz && \
# tar -xzf /opt/dguide/dguide.tar.gz -C /opt/dguide && \
# rm /opt/dguide/dguide.tar.gz
# # Run the install script
# RUN chmod +x /opt/dguide/install.sh && \
# /opt/dguide/install.sh
WORKDIR /dguide
COPY go.mod go.sum ./
RUN go mod download
COPY . .
CMD ["./build.sh"]