File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 5
5
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
6
"image" : " mcr.microsoft.com/devcontainers/rust:latest" ,
7
7
"features" : {
8
- "ghcr.io/devcontainers/features/node:latest" : {}
8
+ "ghcr.io/devcontainers/features/node:latest" : {},
9
+ "ghcr.io/devcontainers/features/docker-in-docker:2" : {}
9
10
},
10
11
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
11
12
// "mounts": [
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " stoic-quotes"
3
- version = " 0.3.7 "
3
+ version = " 0.3.8 "
4
4
edition = " 2021"
5
5
authors = [
" Jose Storopoli <[email protected] >" ]
6
6
description = " Stoic quotes API backend"
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ WORKDIR /usr/src/app
12
12
13
13
# Add labels for OCI annotations
14
14
LABEL org.opencontainers.image.source="https://github.com/storopoli/stoic-quotes" \
15
- org.opencontainers.image.description="Stoic Quotes" \
16
- org.opencontainers.image.licenses="MIT"
15
+ org.opencontainers.image.description="Stoic Quotes" \
16
+ org.opencontainers.image.licenses="MIT"
17
17
18
18
# Copy project's Cargo.toml file
19
19
COPY ./Cargo.toml ./
@@ -37,8 +37,12 @@ RUN cargo build --release --target x86_64-unknown-linux-musl
37
37
# Start a new stage from a slim version of Debian to reduce the size of the final image
38
38
FROM debian:buster-slim
39
39
40
+ WORKDIR /usr/src/app
41
+
40
42
# Copy the binary from the builder stage to the new stage
41
43
COPY --from=builder /usr/src/app/target/x86_64-unknown-linux-musl/release/stoic-quotes /usr/local/bin/stoic-quotes
44
+ # Copy the assets/ from the builder stage to the new stage
45
+ COPY --from=builder /usr/src/app/assets /usr/src/app/assets
42
46
43
47
# Expose port 3000
44
48
EXPOSE 3000
You can’t perform that action at this time.
0 commit comments