Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Add build step to the dockerfiel
Browse files Browse the repository at this point in the history
  • Loading branch information
vladupshot committed Dec 28, 2023
1 parent f92f4b0 commit 95aed50
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
FROM --platform=linux/amd64 golang:1.21-bookworm AS builder

WORKDIR /src

ADD . /src

RUN go mod download && \
make all

###########################
FROM --platform=linux/amd64 ubuntu:latest

ARG ghcr_token
Expand Down Expand Up @@ -32,8 +42,8 @@ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2

## setup
RUN mkdir /app/keys
COPY ./dist/upshot-node upshot-node
COPY ./dist/upshot-keys upshot-keys
COPY --from=builder /src/dist/upshot-node upshot-node
COPY --from=builder /src/dist/upshot-keys upshot-keys

## run script
COPY ./docker/run.sh ./run.sh
Expand Down

0 comments on commit 95aed50

Please sign in to comment.