Skip to content

Commit

Permalink
Use new base image for dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
locka99 committed Jul 30, 2024
1 parent bf23be4 commit a207174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/demo-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR samples/demo-server
RUN cargo install --path .

# Repackage the binary in a standalone container
FROM debian:bullseye-slim AS dist
FROM debian:bookworm-slim AS dist
RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /usr/local/cargo/bin/opcua-demo-server ./
Expand All @@ -17,4 +17,4 @@ COPY --from=builder /build/samples/demo-server/log4rs.yaml ./
COPY --from=builder /build/lib/src/server/html/index.html ./
EXPOSE 4855
EXPOSE 8585
CMD ["./opcua-demo-server --raise-events --config ./server.conf"]
CMD ["/app/opcua-demo-server --raise-events --config /app/server.conf"]

0 comments on commit a207174

Please sign in to comment.