Added dockerfile and dockerignore
This commit is contained in:
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
Dockerfile
|
||||||
|
compose.yaml
|
||||||
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
/target
|
/target
|
||||||
|
config.toml
|
||||||
|
|||||||
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
FROM rust:alpine
|
||||||
|
|
||||||
|
RUN adduser -D robbit
|
||||||
|
RUN apk add --no-cache musl-dev
|
||||||
|
|
||||||
|
WORKDIR /home/robbit/
|
||||||
|
COPY ./ ./
|
||||||
|
RUN chown robbit ./*
|
||||||
|
|
||||||
|
USER robbit
|
||||||
|
|
||||||
|
RUN cargo build -r
|
||||||
|
|
||||||
|
CMD ./target/release/robbit
|
||||||
6
compose.yaml
Normal file
6
compose.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
services:
|
||||||
|
robbit:
|
||||||
|
image: personal_projects:robbit
|
||||||
|
command: -c "./target/release/robbit"
|
||||||
|
entrypoint: /bin/sh
|
||||||
|
|
||||||
Reference in New Issue
Block a user