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 - handshake
dnslink-api: dnslink-api:
build: # uncomment "build" and comment out "image" to build from sources
context: ./packages/dnslink-api # build:
dockerfile: Dockerfile # context: https://github.com/SkynetLabs/skynet-webportal.git#master
# dockerfile: ./packages/dnslink-api/Dockerfile
image: skynetlabs/dnslink-api
container_name: dnslink-api container_name: dnslink-api
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging

View File

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