koa-api/docker/Dockerfile
2018-03-13 23:34:27 +08:00

21 lines
425 B
Docker

# build docker file $ docker build -t vstorage:latest -f docker/Dockerfile .
FROM node:9
LABEL Author=Jay
ENV DB_HOST localhost
ENV DB_PORT 5432
ENV DB_USER postgres
ENV DB_PASS ""
ENV DB_NAME mystorage
ENV HOST_URL localhost
ENV AWS_KEY ""
ENV AWS_SECRET ""
ENV AWS_REGION ""
ENV S3_BUCKET ""
ENV NODE_ENV ""
ENV SESSION_KEY ""
RUN mkdir -p /data
WORKDIR /data
COPY / /data
RUN npm install
EXPOSE 10230
CMD ["npm", "start"]