GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — hapistrano/Dockerfile at main · stackbuilders/hapistrano

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
43 lines (32 loc) · 966 Bytes
/

Dockerfile

Copy path

File metadata and controls

43 lines (32 loc) · 966 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
# Build
FROM quay.io/benz0li/ghc-musl:9.6.6 AS build
WORKDIR /usr/src/app
# Install upx
RUN apk update && apk add --no-cache upx
# Copy only the necessary files for dependency installation
COPY hapistrano.cabal ./
# Install dependencies
RUN cabal update && \
cabal build --only-dependencies --enable-static
# Copy the rest of the files.
COPY . .
# Build the application and compress the binary
RUN cabal build --enable-executable-static && \
cp $(cabal exec which hap) hap && \
upx hap
# Final image
FROM alpine:3.15
LABEL maintainer="Cristhian Motoche <[email protected]>"
# Install runtime dependencies
RUN apk update && \
apk add --no-cache \
ca-certificates \
git \
openssh-client
# Create .ssh directory
RUN mkdir -p ~/.ssh
# Copy the binary from the build stage
COPY --from=build /usr/src/app/hap /usr/local/bin/hap
# Set the entrypoint and default command
ENTRYPOINT ["/usr/local/bin/hap"]
CMD ["--help"]
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.