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 — reasonml-postgres/Dockerfile at master · sync/reasonml-postgres

Expand file tree

/

Dockerfile

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
45 lines (27 loc) · 1.45 KB
/

Dockerfile

Copy path

File metadata and controls

45 lines (27 loc) · 1.45 KB
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
44
45
FROM alpine:3.9 as esy
ENV TERM=dumb LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib
ARG DB_CONNECTION=postgresql://postgres:postgres@localhost:5432/community_test
ENV DB_CONNECTION ${DB_CONNECTION}
RUN apk add --no-cache ca-certificates wget bash curl perl-utils git patch gcc g++ musl-dev make m4 gmp-dev linux-headers openssl-dev postgresql-libs postgresql-dev nodejs nodejs-npm
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
RUN apk add --no-cache glibc-2.28-r0.apk
RUN npm install -g --unsafe-perm esy@latest
RUN mkdir /app
WORKDIR /app
COPY . .
RUN esy install
RUN esy build
RUN esy test
RUN esy e2e
RUN esy bash -c 'cp $cur__target_dir/default/executable/ReasonmlPostgresApp.exe bootstrap'
# now that we have build everthing, let's just use the binary
FROM alpine:3.9 as slim
ENV TERM=dumb LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib
WORKDIR /
COPY --from=esy /app/bootstrap ./bootstrap
RUN apk add --no-cache ca-certificates wget bash curl perl-utils git patch gcc g++ musl-dev make m4 gmp-dev linux-headers openssl-dev postgresql-libs postgresql-dev
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.28-r0/glibc-2.28-r0.apk
RUN apk add --no-cache glibc-2.28-r0.apk
ENTRYPOINT [ "./bootstrap" ]
You are visitor 01402520 — 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.