mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-31 17:14:46 +01:00
Update docker (#95)
This commit is contained in:
committed by
GitHub
parent
a348f6c771
commit
6a71ff86ea
10
.dockerignore
Normal file
10
.dockerignore
Normal file
@@ -0,0 +1,10 @@
|
||||
.git
|
||||
.github/
|
||||
website/
|
||||
noah/
|
||||
**/dist/
|
||||
**/build/
|
||||
**/*.yml
|
||||
**/*.yaml
|
||||
**/*.md
|
||||
**/*Dockerfile
|
||||
23
Dockerfile
23
Dockerfile
@@ -1,4 +1,4 @@
|
||||
# first image used to build the sources
|
||||
# First image used to build the sources
|
||||
FROM golang:1.21.0 AS builder
|
||||
|
||||
ARG VERSION
|
||||
@@ -16,26 +16,15 @@ RUN cd asp && CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldfl
|
||||
# Second image, running the arkd executable
|
||||
FROM debian:buster-slim
|
||||
|
||||
# $USER name, and data $DIR to be used in the 'final' image
|
||||
ARG USER=ark
|
||||
ARG DIR=/home/ark
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates
|
||||
COPY --from=builder /app/bin/* /app
|
||||
|
||||
COPY --from=builder /app/bin/* /usr/local/bin/
|
||||
|
||||
# NOTE: Default GID == UID == 1000
|
||||
RUN adduser --disabled-password \
|
||||
--home "$DIR/" \
|
||||
--gecos "" \
|
||||
"$USER"
|
||||
USER $USER
|
||||
|
||||
# Prevents 'VOLUME $DIR/.arkd/' being created as owned by 'root'
|
||||
RUN mkdir -p "$DIR/.arkd/"
|
||||
ENV PATH="/app:${PATH}"
|
||||
ENV ARK_DATADIR=/app/data
|
||||
|
||||
# Expose volume containing all 'arkd' data
|
||||
VOLUME $DIR/.arkd/
|
||||
VOLUME /app/data
|
||||
|
||||
ENTRYPOINT [ "arkd" ]
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
*.md
|
||||
build
|
||||
dist
|
||||
.git
|
||||
.github
|
||||
Dockerfile
|
||||
|
||||
@@ -5,7 +5,6 @@ services:
|
||||
container_name: oceand
|
||||
image: ghcr.io/vulpemventures/oceand:latest
|
||||
restart: unless-stopped
|
||||
user: 0:0
|
||||
environment:
|
||||
- OCEAN_LOG_LEVEL=5
|
||||
- OCEAN_NO_TLS=true
|
||||
@@ -17,8 +16,8 @@ services:
|
||||
ports:
|
||||
- "18000:18000"
|
||||
volumes:
|
||||
- oceand-volume:/home/ocean/.oceand
|
||||
- ocean-cli-volume:/home/ocean/.ocean-cli
|
||||
- oceand:/app/data/oceand
|
||||
- ocean:/app/data/ocean
|
||||
arkd:
|
||||
container_name: arkd
|
||||
build:
|
||||
@@ -33,14 +32,14 @@ services:
|
||||
ports:
|
||||
- "6000:6000"
|
||||
volumes:
|
||||
- arkd-volume:/home/ark/.arkd
|
||||
- arkd:/app/data
|
||||
|
||||
volumes:
|
||||
oceand-volume:
|
||||
oceand:
|
||||
external: false
|
||||
ocean-cli-volume:
|
||||
ocean:
|
||||
external: false
|
||||
arkd-volume:
|
||||
arkd:
|
||||
external: false
|
||||
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user