we can now build docker containers!
This commit is contained in:
parent
7c89da0baf
commit
81b3cd5d19
3 changed files with 31 additions and 2 deletions
|
@ -4,6 +4,11 @@ COPY . /tmp
|
|||
RUN yarn install --production
|
||||
RUN yarn global add typescript
|
||||
RUN tsc
|
||||
RUN cp /tmp/build/* /app
|
||||
RUN mkdir /app
|
||||
RUN cp -r /tmp/build/* /app
|
||||
RUN cp -r /tmp/posts /app/default_posts
|
||||
RUN cp -r /tmp/node_modules /app
|
||||
RUN cp -r /tmp/templates /app/default_templates
|
||||
COPY ./scripts/docker_run.sh /app/run.sh
|
||||
WORKDIR /app
|
||||
CMD ["node","index.js"]
|
||||
CMD ["/app/run.sh"]
|
||||
|
|
Reference in a new issue