Skip to content

Commit

Permalink
Remove unneeded packages & commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jyri Högman committed Sep 21, 2024
1 parent fbb858d commit bf22b62
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 175 deletions.
164 changes: 28 additions & 136 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
axum = "0.7.5"
axum = "0.7.6"
lambda_http = "0.13"

tokio = { version = "1.40", features = ["full"] }
Expand All @@ -14,8 +14,6 @@ serde_json = "1.0.128"
serde_dynamo = { version = "4.2.14", features = ["aws-sdk-dynamodb+1"] }
tracing-subscriber = "0.3.18"

anyhow = "1.0.87"
tower_governor = "0.4.2"
aws-sdk-ssm = "1.46.0"

chrono = { workspace = true }
Expand Down
36 changes: 0 additions & 36 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,39 +21,3 @@ FROM public.ecr.aws/lambda/provided:al2023
COPY --from=builder /usr/src/app/target/lambda/waterheater-calc/bootstrap /var/runtime/

CMD [ "bootstrap" ]


# FROM rust:1.81-slim-bullseye AS builder
# WORKDIR /app
#
# RUN apt-get update
# RUN apt-get install -y pkg-config openssl libssl-dev curl
#
# COPY ./server/ ./server/
# COPY ./worker/ ./worker/
# COPY ./wh-core/ ./wh-core/
# COPY ./message-handler/ ./message-handler/
# COPY Cargo.toml .
# COPY Cargo.lock .
#
# WORKDIR /app/server
# RUN cargo build -p waterheater-calc --release
#
# FROM debian:bullseye-slim AS final
# WORKDIR /app/server
# COPY --from=builder /app/target/release/waterheater-calc .
#
# ARG UID=10001
# RUN adduser \
# --disabled-password \
# --gecos "" \
# --home "/nonexistent" \
# --shell "/sbin/nologin" \
# --no-create-home \
# --uid "${UID}" \
# appuser
# RUN chown -R appuser:appuser /app && chmod -R 755 /app
# USER appuser
#
# CMD ["/app/server/server"]
# EXPOSE 8001

0 comments on commit bf22b62

Please sign in to comment.