Switched base container for the docker build (#57)
This commit is contained in:
parent
a8340f37bb
commit
2196b53075
@ -1,2 +1,3 @@
|
||||
target
|
||||
.env
|
||||
.env
|
||||
Dockerfile
|
||||
7
.github/workflows/docker-compile-master.yml
vendored
7
.github/workflows/docker-compile-master.yml
vendored
@ -16,10 +16,9 @@ jobs:
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: modrinth/labrinth/labrinth
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
repository: modrinth/labrinth
|
||||
tag_with_ref: false
|
||||
tags: master
|
||||
tag_with_sha: true
|
||||
7
.github/workflows/docker-compile-tag.yml
vendored
7
.github/workflows/docker-compile-tag.yml
vendored
@ -17,10 +17,9 @@ jobs:
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v1
|
||||
with:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: modrinth/labrinth/labrinth
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
repository: modrinth/labrinth
|
||||
tag_with_ref: true
|
||||
tags: latest
|
||||
tag_with_sha: true
|
||||
4
.github/workflows/docker-compile.yml
vendored
4
.github/workflows/docker-compile.yml
vendored
@ -2,8 +2,8 @@ name: Docker image build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- !master
|
||||
branches-ignore:
|
||||
- master
|
||||
pull_request:
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
@ -23,10 +23,11 @@ ARG SQLX_OFFLINE=true
|
||||
RUN cargo build --release
|
||||
|
||||
|
||||
FROM gcr.io/distroless/cc-debian10
|
||||
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth
|
||||
COPY --from=build /usr/src/labrinth/target/release/migrations/* /labrinth/migrations/
|
||||
FROM bitnami/minideb:latest
|
||||
RUN install_packages openssl
|
||||
COPY --from=build /usr/src/labrinth/target/release/labrinth /labrinth/labrinth
|
||||
COPY --from=build /usr/src/labrinth/migrations/* /labrinth/migrations/
|
||||
COPY --from=build /wait /wait
|
||||
WORKDIR /labrinth
|
||||
|
||||
CMD /wait && /opt/labrinth
|
||||
CMD /wait && /labrinth/labrinth
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user