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