fix: swap docker file to bin

This commit is contained in:
Elijah McMorris 2024-06-14 18:12:53 -07:00
parent 486ed4c958
commit 4a935992b0
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
3 changed files with 27 additions and 28 deletions

View file

@ -1,18 +1,18 @@
services: services:
ark-invest-api-rust: ark-invest-api-rust:
image: ark-invest-api-rust image: ark-invest-api-rust
build: build:
context: . context: .
args: args:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
container_name: ark-invest-api-rust container_name: ark-invest-api-rust
restart: unless-stopped restart: unless-stopped
# environment: # environment:
# - NGINX = false # - NGINX = false
volumes: volumes:
- ./data:/ark-invest-api-rust/data - ./data:/data
ports: ports:
- "3000:3000" - "3000:3000"
volumes: volumes:
data: data:

View file

@ -1,14 +1,14 @@
services: services:
ark-invest-api-rust: ark-invest-api-rust:
image: ghcr.io/nexveridian/ark-invest-api-rust:latest image: ghcr.io/nexveridian/ark-invest-api-rust:latest
container_name: ark-invest-api-rust container_name: ark-invest-api-rust
restart: unless-stopped restart: unless-stopped
# environment: # environment:
# - NGINX = false # - NGINX = false
volumes: volumes:
- ./data:/ark-invest-api-rust/data - ./data:/data
ports: ports:
- "3000:3000" - "3000:3000"
volumes: volumes:
data: data:

View file

@ -73,8 +73,7 @@
tag = "latest"; tag = "latest";
copyToRoot = [ my-crate ]; copyToRoot = [ my-crate ];
config = { config = {
Cmd = [ "./ark-invest-api-rust" ]; Cmd = [ "${my-crate}/bin/ark-invest-api-rust" ];
WorkingDir = "${my-crate}/ark-invest-api-rust";
Env = [ "PORT=3000" ]; Env = [ "PORT=3000" ];
Expose = [ 3000 ]; Expose = [ 3000 ];
}; };