Update dockerfile and .dockerignore
This commit is contained in:
parent
b7752245b6
commit
1a933dcf91
|
@ -1 +0,0 @@
|
||||||
.gitignore
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
/target
|
||||||
|
Dockerfile
|
|
@ -1,8 +1,8 @@
|
||||||
FROM rust:alpine3.14 as builder
|
FROM rust:alpine3.18 as builder
|
||||||
|
|
||||||
# update packages
|
# update packages
|
||||||
RUN apk update
|
RUN apk update
|
||||||
RUN apk add build-base pkgconfig
|
RUN apk add build-base pkgconfig libressl-dev
|
||||||
|
|
||||||
# Install rust toolchains
|
# Install rust toolchains
|
||||||
RUN rustup toolchain install stable
|
RUN rustup toolchain install stable
|
||||||
|
@ -23,10 +23,6 @@ RUN cargo build --release
|
||||||
# Runner stage.
|
# Runner stage.
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
# update packages
|
|
||||||
RUN apk update
|
|
||||||
RUN apk add zfs
|
|
||||||
|
|
||||||
ARG UNAME=port_updater
|
ARG UNAME=port_updater
|
||||||
ARG UID=1000
|
ARG UID=1000
|
||||||
ARG GID=1000
|
ARG GID=1000
|
||||||
|
|
Loading…
Reference in New Issue