added docker stuff and updated next.js to ^7.0.0
This commit is contained in:
27
Dockerfile
Normal file
27
Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
FROM node:8-alpine
|
||||
|
||||
RUN apk add yarn git bash
|
||||
RUN mkdir -p /opt/mykb
|
||||
|
||||
# install node_modules to tmp so it can be cached
|
||||
RUN mkdir -p /tmp/mykb
|
||||
COPY package.json /tmp/mykb
|
||||
RUN cd /tmp/mykb && yarn
|
||||
RUN mv /tmp/mykb/node_modules /opt/mykb/
|
||||
|
||||
COPY . /opt/mykb
|
||||
RUN cd /opt/mykb && yarn build
|
||||
|
||||
COPY docker_startup.sh /mykb
|
||||
RUN chmod +x /mykb
|
||||
|
||||
VOLUME /kb
|
||||
VOLUME /db
|
||||
VOLUME /config
|
||||
|
||||
EXPOSE 3030
|
||||
|
||||
ARG GIT_NAME=mykb
|
||||
ARG GIT_EMAIL=mykb@localhost
|
||||
|
||||
CMD [ "/mykb" ]
|
||||
Reference in New Issue
Block a user