Update dockerfile and .dockerignore

This commit is contained in:
SeanOMik 2023-12-13 20:06:39 -05:00
parent b7752245b6
commit 1a933dcf91
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 4 additions and 7 deletions

View File

@ -1 +0,0 @@
.gitignore

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
/target
Dockerfile

View File

@ -1,8 +1,8 @@
FROM rust:alpine3.14 as builder
FROM rust:alpine3.18 as builder
# update packages
RUN apk update
RUN apk add build-base pkgconfig
RUN apk add build-base pkgconfig libressl-dev
# Install rust toolchains
RUN rustup toolchain install stable
@ -23,10 +23,6 @@ RUN cargo build --release
# Runner stage.
FROM alpine
# update packages
RUN apk update
RUN apk add zfs
ARG UNAME=port_updater
ARG UID=1000
ARG GID=1000