Docker: Updated the dockerfile and deploy script to better use docker cacheing
This commit is contained in:
@ -1,14 +1,22 @@
|
||||
FROM node:latest AS builder
|
||||
RUN mkdir -p /app/bookie
|
||||
COPY package.json /app/bookie/package.json
|
||||
RUN cd /app/bookie \
|
||||
&& npm install --unsafe-perm \
|
||||
&& mv /app/bookie/node_modules / \
|
||||
&& cd / \
|
||||
&& rm -rf /app
|
||||
ADD https://git.tanshu.com/api/v1/repos/tanshu/barker/tags /tags.json
|
||||
RUN git clone --single-branch --depth 1 --branch latest https://git.tanshu.com/tanshu/barker.git /app
|
||||
WORKDIR /app/bookie
|
||||
RUN npm install --unsafe-perm && /app/bookie/node_modules/.bin/ng build
|
||||
RUN mv /node_modules /app/bookie/ \
|
||||
&& /app/bookie/node_modules/.bin/ng build
|
||||
|
||||
|
||||
FROM python:latest
|
||||
LABEL maintainer="Amritanshu <docker@tanshu.com>"
|
||||
|
||||
ADD https://git.tanshu.com/tanshu/barker/raw/tag/latest/barker/pyproject.toml /app/pyproject.toml
|
||||
COPY pyproject.toml /app/pyproject.toml
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y locales && \
|
||||
|
||||
Reference in New Issue
Block a user