mirror of https://github.com/nocodb/nocodb
o1lab
7 years ago
committed by
GitHub
3 changed files with 49 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||||||
|
#!/bin/sh |
||||||
|
cd /usr/src/app/ |
||||||
|
node index.js -h $DATABASE_HOST -p $DATABASE_PASSWORD -d $DATABASE_NAME -u $DATABASE_USER |
@ -0,0 +1,22 @@ |
|||||||
|
FROM mhart/alpine-node:latest |
||||||
|
|
||||||
|
RUN mkdir -p /usr/src/{app,bin,lib} |
||||||
|
WORKDIR /usr/src/app |
||||||
|
|
||||||
|
# only install production deps to keep image small |
||||||
|
COPY package.json /usr/src/app |
||||||
|
RUN npm install --production |
||||||
|
|
||||||
|
COPY index.js /usr/src/app |
||||||
|
COPY bin/ /usr/src/app/bin |
||||||
|
COPY lib/ /usr/src/app/lib |
||||||
|
COPY docker-entrypoint.sh /docker-entrypoint.sh |
||||||
|
|
||||||
|
# env |
||||||
|
ENV DATABASE_HOST 127.0.0.1 |
||||||
|
ENV DATABASE_USER root |
||||||
|
ENV DATABASE_PASSWORD password |
||||||
|
ENV DATABASE_NAME sakila |
||||||
|
|
||||||
|
EXPOSE 3000 |
||||||
|
ENTRYPOINT ["/docker-entrypoint.sh"] |
Loading…
Reference in new issue