mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 10:25:34 +00:00
19 lines
368 B
Docker
19 lines
368 B
Docker
FROM node:alpine3.12
|
|
|
|
LABEL maintainer="slynn1324@gmail.com"
|
|
|
|
ARG VERSION
|
|
|
|
LABEL tinypin-version=$VERSION
|
|
|
|
ENV TINYPIN_VERSION=$VERSION
|
|
|
|
COPY . /tinypin
|
|
|
|
WORKDIR /tinypin
|
|
|
|
RUN apk add build-base python3 && npm install --verbose && apk del build-base python3
|
|
|
|
RUN mkdir /data && npm install
|
|
|
|
ENTRYPOINT ["sh", "-c" , "node main.js -i /data/images -d /data/tinypin.db"]
|