Add app info, configs, reset and docker
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user