use dnslink-api docker image

This commit is contained in:
Karol Wypchlo 2022-04-07 14:39:53 +02:00
parent 40b8390c19
commit 1d50d51f29
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
2 changed files with 7 additions and 5 deletions

View File

@ -144,9 +144,11 @@ services:
- handshake
dnslink-api:
build:
context: ./packages/dnslink-api
dockerfile: Dockerfile
# uncomment "build" and comment out "image" to build from sources
# build:
# context: https://github.com/SkynetLabs/skynet-webportal.git#master
# dockerfile: ./packages/dnslink-api/Dockerfile
image: skynetlabs/dnslink-api
container_name: dnslink-api
restart: unless-stopped
logging: *default-logging

View File

@ -2,11 +2,11 @@ FROM node:16.14.2-alpine
WORKDIR /usr/app
COPY package.json yarn.lock ./
COPY packages/dnslink-api/package.json packages/dnslink-api/yarn.lock ./
RUN yarn --frozen-lockfile
COPY src/* src/
COPY packages/dnslink-api/src/* src/
EXPOSE 3100
CMD ["node", "src/index.js"]