Skip to content

Commit a7a7a56

Browse files
committed
new: updated dockerfile to include docker-cli
1 parent 57628b8 commit a7a7a56

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Push Docker Images
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
paths-ignore:
7+
- 'README.md'
8+
9+
jobs:
10+
docker:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v3
21+
with:
22+
username: ${{ secrets.DOCKERHUB_USERNAME }}
23+
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
- name: Build and push
25+
uses: docker/build-push-action@v5
26+
with:
27+
platforms: linux/amd64,linux/arm64
28+
push: true
29+
tags: dreadnode/robopages:latest

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ ADD . /app
77
RUN cargo build --release
88

99
FROM debian:bullseye
10-
RUN apt-get update && apt-get install -y libssl-dev ca-certificates
10+
11+
RUN apt-get update && apt-get install -y libssl-dev curl ca-certificates
12+
RUN curl -fsSL https://get.docker.com | sh
13+
1114
COPY --from=builder /app/target/release/robopages /usr/bin/robopages
15+
1216
ENTRYPOINT ["/usr/bin/robopages"]

0 commit comments

Comments
 (0)