Skip to content

Commit

Permalink
setup docker
Browse files Browse the repository at this point in the history
  • Loading branch information
maxday committed Jan 31, 2024
1 parent 9aadc0a commit fd90340
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-new-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Test context
run: docker context use default
- name: test build arm
run: cd s3-uploader/runtimes/rust_on_provided_al2023 && docker buildx build . --build-arg ARCH=arm64 -t maxday/rust_on_provided_al2023
run: cd s3-uploader/runtimes/rust_on_provided_al2023 && docker buildx build . -t maxday/rust_on_provided_al2023



Expand Down
3 changes: 1 addition & 2 deletions s3-uploader/runtimes/rust_on_provided_al2023/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM public.ecr.aws/lambda/provided:al2023 as builder
ARG ARCH
WORKDIR /usr/src/app
RUN dnf -y update
RUN dnf -y install openssl openssl-devel
Expand All @@ -15,7 +14,7 @@ RUN rm -rf ./src
COPY src ./src
RUN touch -a -m ./src/lib.rs
RUN pip3 install cargo-lambda
RUN /root/.cargo/bin/cargo lambda build --release --${ARCH}
RUN /root/.cargo/bin/cargo lambda build --release --arm64
RUN zip -j /tmp/code.zip target/lambda/lambda-perf/bootstrap

FROM scratch
Expand Down

0 comments on commit fd90340

Please sign in to comment.