21 lines
318 B
Docker
21 lines
318 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk add --no-cache nodejs npm bind bind-tools
|
|
WORKDIR /icydns
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --only production
|
|
COPY dist/ ./dist/
|
|
|
|
RUN mkdir /rndc
|
|
RUN mkdir /zones
|
|
|
|
ENV RNDC_KEYFILE="/rndc/rndc.key"
|
|
ENV ZONEFILES="/zones"
|
|
|
|
VOLUME /zones
|
|
VOLUME /rndc
|
|
|
|
EXPOSE 9129
|
|
CMD [ "npm", "start" ]
|