Skip to content

Commit

Permalink
update dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
seabo committed Oct 17, 2023
1 parent 5b65827 commit cfb798c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion deploy/api.dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ RUN ~/.cargo/bin/cargo search
# Install nightly rust.
RUN ~/.cargo/bin/rustup install nightly-2022-10-16

CMD ~/.cargo/bin/cargo run --release --bin=hitsave -- -vv
CMD ~/.cargo/bin/cargo run --release --bin=hitsave -- -vv
8 changes: 3 additions & 5 deletions deploy/api.prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM ubuntu
FROM ubuntu:20.04

RUN apt-get -y upgrade \
&& apt-get -y update \
&& apt-get -y install wget \
&& wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb \
&& dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
&& apt-get -y install libssl-dev

COPY /api/target/release/hitsave /usr/bin/hitsave

CMD ["hitsave", "-v"]
CMD ["hitsave", "-v"]
4 changes: 2 additions & 2 deletions deploy/migrate.dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu
FROM ubuntu:20.04

# Install package dependencies.
RUN apt-get -y upgrade \
Expand Down Expand Up @@ -27,4 +27,4 @@ RUN ~/.cargo/bin/cargo search
# Install nightly rust.
RUN ~/.cargo/bin/rustup install nightly-2022-10-16

CMD ~/.cargo/bin/cargo run --release --bin=migrate -- -vv
CMD ~/.cargo/bin/cargo run --release --bin=migrate -- -vv
6 changes: 3 additions & 3 deletions deploy/migrate.prod.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu
FROM ubuntu:20.04

RUN apt-get -y upgrade \
&& apt-get -y update \
&& apt-get -y install libssl1.1
&& apt-get -y install libssl-dev

COPY /api/target/release/migrate /usr/bin/migrate

CMD ["migrate"]
CMD ["migrate"]

1 comment on commit cfb798c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seabo this was deployed as to group ``.

Please sign in to comment.