use dnslink-api docker image
This commit is contained in:
parent
40b8390c19
commit
1d50d51f29
|
@ -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
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
Reference in New Issue