mirror of
https://github.com/pezkuwichain/pezkuwi-apps.git
synced 2026-04-22 01:57:57 +00:00
d21bfb1320
Rebranded terminology: - Polkadot → Pezkuwi - Kusama → Dicle - Westend → Zagros - Rococo → PezkuwiChain - Substrate → Bizinikiwi - parachain → teyrchain Custom logos with Kurdistan brand colors (#e6007a → #86e62a): - bizinikiwi-hexagon.svg - sora-bizinikiwi.svg - hezscanner.svg - heztreasury.svg - pezkuwiscan.svg - pezkuwistats.svg - pezkuwiassembly.svg - pezkuwiholic.svg
37 lines
945 B
Docker
37 lines
945 B
Docker
FROM ubuntu:latest as builder
|
|
|
|
# Install any needed packages
|
|
RUN apt-get update && \
|
|
apt-get install --no-install-recommends -y build-essential curl git gnupg ca-certificates
|
|
|
|
# install nodejs
|
|
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
|
|
RUN apt-get install --no-install-recommends -y nodejs && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
RUN npm install yarn -g
|
|
|
|
WORKDIR /apps
|
|
COPY . .
|
|
|
|
RUN yarn && NODE_ENV=production yarn build:www
|
|
|
|
# ===========================================================
|
|
FROM nginx:stable-alpine
|
|
|
|
# The following is mainly for doc purpose to show which ENV is supported
|
|
ENV WS_URL=
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
COPY docker/env.sh .
|
|
|
|
RUN apk add --no-cache bash; chmod +x env.sh
|
|
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=builder /apps/packages/apps/build /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["/bin/bash", "-c", "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\""]
|