Skip to content

Commit 2470cae

Browse files
committed
Remove now unnecessary files from docker image
1 parent dbf1065 commit 2470cae

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlpage"
3-
version = "0.0.1"
3+
version = "0.1.0"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.63-alpine3.16 as builder
1+
FROM rust:1.64-alpine3.16 as builder
22
RUN rustup component add clippy rustfmt
33
RUN apk add --no-cache musl-dev
44
WORKDIR /usr/src/sqlpage
@@ -21,7 +21,6 @@ COPY --from=builder /usr/src/sqlpage/target/release/sqlpage /usr/local/bin/sqlpa
2121
RUN addgroup -S sqlpage && adduser -S sqlpage -G sqlpage
2222
WORKDIR /var/www
2323
COPY --from=builder /usr/src/sqlpage/index.sql .
24-
COPY --from=builder /usr/src/sqlpage/sqlpage ./sqlpage
2524
USER sqlpage
2625
EXPOSE 8080
2726
CMD ["sqlpage"]

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ FROM user_form;
8888
## How it works
8989

9090
SQLPage is a [web server](https://en.wikipedia.org/wiki/Web_server) written in
91-
[rust](https://en.wikipedia.org/wiki/Rust_(programming_language)).
91+
[rust](https://en.wikipedia.org/wiki/Rust_(programming_language))
92+
and distributed as a single executable file.
9293
When it receives a request to a URL ending in `.sql`, it finds the corresponding
9394
SQL file, runs it on the database,
9495
passing it information from the web request as SQL statement parameters.

lambda.Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ RUN mv target/release/sqlpage bootstrap && \
1515

1616
FROM public.ecr.aws/lambda/provided:al2 as runner
1717
COPY --from=builder /usr/src/sqlpage/bootstrap /main
18-
COPY --from=builder /usr/src/sqlpage/sqlpage ./sqlpage
1918
COPY --from=builder /usr/src/sqlpage/index.sql ./index.sql
2019
ENTRYPOINT ["/main"]

0 commit comments

Comments
 (0)