forked from aragon/app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.webapp.dev
43 lines (39 loc) · 1.45 KB
/
Dockerfile.webapp.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM caddy:2.6.4-alpine
# ARG COMMIT_SHA
# ARG NODE_ENV
# ARG ENVIRONMENT
# ENV COMMIT_SHA=${COMMIT_SHA}
# ENV NODE_ENV=${NODE_ENV}
# ENV ENVIRONMENT=${ENVIRONMENT}
ARG VITE_REACT_APP_DEPLOY_VERSION
ARG VITE_REACT_APP_DEPLOY_ENVIRONMENT
ARG VITE_REACT_APP_ANALYTICS_KEY
ARG VITE_IPFS_API_KEY
ARG VITE_ETHERSCAN_API_KEY
ARG VITE_GATEWAY_RPC_API_KEY
ARG VITE_WALLET_CONNECT_PROJECT_ID
ARG VITE_ALCHEMY_KEY_POLYGON_MUMBAI
ARG VITE_ALCHEMY_KEY_POLYGON_MAINNET
ARG VITE_ALCHEMY_KEY_MAINNET
ARG VITE_ALCHEMY_KEY_GOERLI
ARG VITE_COVALENT_API_KEY
ARG NODE_OPTIONS
ENV VITE_REACT_APP_DEPLOY_VERSION=${VITE_REACT_APP_DEPLOY_VERSION}
ENV VITE_REACT_APP_DEPLOY_ENVIRONMENT=${VITE_REACT_APP_DEPLOY_ENVIRONMENT}
ENV VITE_REACT_APP_ANALYTICS_KEY=${VITE_REACT_APP_ANALYTICS_KEY}
ENV VITE_IPFS_API_KEY=${VITE_IPFS_API_KEY}
ENV VITE_ETHERSCAN_API_KEY=${VITE_ETHERSCAN_API_KEY}
ENV VITE_GATEWAY_RPC_API_KEY=${VITE_GATEWAY_RPC_API_KEY}
ENV VITE_WALLET_CONNECT_PROJECT_ID=${VITE_WALLET_CONNECT_PROJECT_ID}
ENV VITE_ALCHEMY_KEY_POLYGON_MUMBAI=${VITE_ALCHEMY_KEY_POLYGON_MUMBAI}
ENV VITE_ALCHEMY_KEY_POLYGON_MAINNET=${VITE_ALCHEMY_KEY_POLYGON_MUMBAI}
ENV VITE_ALCHEMY_KEY_MAINNET=${VITE_ALCHEMY_KEY_MAINNET}
ENV VITE_ALCHEMY_KEY_GOERLI=${VITE_ALCHEMY_KEY_GOERLI}
ENV VITE_COVALENT_API_KEY=${VITE_COVALENT_API_KEY}
ENV NODE_OPTIONS=${NODE_OPTIONS}
## Copy Caddyfile to Caddy
COPY caddyfile.webapp.dev /etc/caddy/Caddyfile
## Copy generated static site to Caddy
WORKDIR /website
COPY dist .
EXPOSE 9080