Add app info, configs, reset and docker

This commit is contained in:
2021-11-10 19:54:56 +07:00
parent 025ff76a20
commit 3d4e0e7664
11 changed files with 146 additions and 19 deletions

View File

@@ -2,11 +2,12 @@
FROM cubetiq/calpine-node AS builder
RUN apk update && \
# For build commit hash in "process.env.COMMIT_ID"
apk add git && \
apk add tzdata && \
cp /usr/share/zoneinfo/Asia/Phnom_Penh /etc/localtime && \
echo "Asia/Phnom_Penh" > /etc/timezone && \
apk del tzdata
echo "Asia/Phnom_Penh" > /etc/timezone
WORKDIR /app
COPY package.json ./
# Set custom registry for npm registry (from cubetiq local server)
@@ -15,6 +16,10 @@ RUN yarn
COPY . .
RUN yarn build
# Clean up unused packages
RUN apk del tzdata && \
apk del git
# Build production image
FROM nginx:alpine
LABEL maintainer="sombochea@cubetiqs.com"