File tree 3 files changed +18
-17
lines changed
3 files changed +18
-17
lines changed Original file line number Diff line number Diff line change 1
- # # Build the builder image
2
- FROM daewok/sbcl:alpine AS build
3
- RUN apk update && apk upgrade
1
+ FROM clfoundation/sbcl:2.1.5-alpine3.13 AS build
2
+ RUN apk --no-cache add curl
4
3
5
4
# Set working directory
6
5
WORKDIR /opt/representer
7
- env HOME /opt/representer
6
+ ENV HOME= /opt/representer
8
7
9
8
# Pull down the latest Quicklisp
10
- ADD https://beta.quicklisp.org/quicklisp.lisp quicklisp/
9
+ RUN mkdir build && curl https://beta.quicklisp.org/quicklisp.lisp -o build/quicklisp.lisp
11
10
12
- # install quicklisp
11
+ # Install quicklisp
13
12
COPY build/install-quicklisp.lisp build/
14
13
RUN sbcl --script build/install-quicklisp.lisp
15
14
16
- # build the application
15
+ # Build the application
17
16
COPY build/build.lisp build/
18
17
COPY src quicklisp/local-projects/representer
19
18
RUN sbcl --script ./build/build.lisp
20
19
21
- # # Build the runtime image
22
- FROM alpine
20
+ # Build the runtime image
21
+ FROM alpine:3.13
23
22
WORKDIR /opt/representer
24
23
25
24
# Copy over the representer code
26
- COPY --from=build /opt/representer/representer bin/
25
+ COPY --from=build /opt/representer/bin/ bin/
27
26
COPY bin/run.sh bin/
28
27
29
28
# Set representer script as the ENTRYPOINT
Original file line number Diff line number Diff line change 1
- (load " quicklisp/setup" )
1
+ (load " quicklisp/setup.lisp " )
2
2
(ql :quickload " representer" )
3
3
4
- (sb-ext :save-lisp-and-die " representer"
5
- :toplevel #' (lambda ()
6
- (apply #' representer/main:main
7
- (uiop :command-line-arguments)))
8
- :executable t )
4
+ (let ((bin-dir (make-pathname :directory ' (:relative " bin" ))))
5
+ (ensure-directories-exist bin-dir)
6
+ (sb-ext :save-lisp-and-die (merge-pathnames " representer" bin-dir)
7
+ :toplevel #' (lambda ()
8
+ (apply #' representer/main:main
9
+ (uiop :command-line-arguments)))
10
+ :executable t ))
Original file line number Diff line number Diff line change 1
- (load " quicklisp /quicklisp.lisp" )
1
+ (load " build /quicklisp.lisp" )
2
2
(quicklisp-quickstart :install)
You can’t perform that action at this time.
0 commit comments