Skip to content

Commit c06fa0a

Browse files
committed
Correct Dockerfile and action
1 parent 38602bf commit c06fa0a

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,6 @@ env:
1111

1212
jobs:
1313

14-
build:
15-
16-
runs-on: ubuntu-latest
17-
18-
steps:
19-
- uses: actions/checkout@v3
20-
- name: Build the Docker image
21-
run: docker-compose build --no-cache --force-rm
22-
test:
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- name: Test the Docker image
27-
run: docker-compose up -d
2814
push_to_registry:
2915
name: Push Docker image to Docker Hub
3016
runs-on: ubuntu-latest

Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ FROM rust:1.75.0 AS build-env
33
ARG BUILD_DATE
44
ARG VCS_REF
55
LABEL maintainer="Laurent <[email protected]>" \
6-
org.opencontainers.image.title="NavData Backend" \
7-
org.opencontainers.image.description="Endpoint to get information about airports or navaids" \
6+
org.opencontainers.image.title="NavData REST API" \
7+
org.opencontainers.image.description="REST API to get information about airports or navaids" \
88
org.opencontainers.image.authors="Laurent <[email protected]>" \
99
org.opencontainers.image.vendor="Laurent Vromman" \
1010
org.opencontainers.image.documentation="https://github.com/leirn/navdata/README.md" \
@@ -49,6 +49,5 @@ ENV RUST_BACKTRACE=${RUST_BACKTRACE}
4949

5050
EXPOSE 8080
5151

52-
COPY --from=build-env /app/target/release/api_backend /
53-
COPY resources/default.jpg /
54-
CMD ["./navdata"]
52+
COPY --from=build-env /app/target/release/nav_data /
53+
CMD ["./nav_data"]

0 commit comments

Comments
 (0)