[wip/dev] dockerfile
This commit is contained in:
parent
2cb51c6537
commit
fce00cb5a7
18
Dockerfile
18
Dockerfile
@ -14,7 +14,9 @@ COPY . .
|
||||
RUN make build
|
||||
|
||||
# Final image
|
||||
FROM ubuntu:24.04
|
||||
# DEV golang image
|
||||
FROM golang:1.23-bookworm AS base
|
||||
# FROM ubuntu:24.04
|
||||
|
||||
# Install ca-certificates, jq, curl, bash, and other necessary packages
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
@ -22,13 +24,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
jq yq curl netcat-openbsd bash \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy over binary from the builder
|
||||
COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
||||
# FROM base
|
||||
|
||||
# Copy over init script from builder
|
||||
COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/scripts/init.sh scripts/init.sh
|
||||
# # Copy over binary from the builder
|
||||
# COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/build/laconicd /usr/bin/laconicd
|
||||
|
||||
WORKDIR /
|
||||
# # Copy over init script from builder
|
||||
# COPY --from=builder /go/src/git.vdb.to/cerc-io/laconicd/scripts/init.sh scripts/init.sh
|
||||
|
||||
# WORKDIR /
|
||||
|
||||
# Run laconicd by default
|
||||
CMD ["laconicd"]
|
||||
ENTRYPOINT ["laconicd"]
|
||||
|
Loading…
Reference in New Issue
Block a user