forked from Hubs-Foundation/Spoke
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.habitat
41 lines (32 loc) · 939 Bytes
/
Dockerfile.habitat
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
# build stage
# FROM habitat/default-studio-x86_64-linux:1.6.2
FROM alpine
RUN apk add --no-cache curl bash
RUN curl https://raw.githubusercontent.com/habitat-sh/habitat/master/components/hab/install.sh | bash
# hubs modules
COPY . /spoke/
RUN hab license accept
RUN hab studio run build /spoke --verbose
# production stage
FROM nginx:stable as production-stage
COPY scripts/ /spoke/scripts/
COPY --from=build-stage /spoke/dist /spoke/dist
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
ENV ROUTER_BASE_PATH=/
ENV BASE_ASSETS_PATH=http://xrchat.local/
ENV CLIENT_SERVER=xrchat.local:4000
ENV API_SERVER=xrchat.local:4000
ENV BASE_ASSETS_PATH=
ENV CLIENT_SERVER=
ENV API_SERVER=
ENV THUMBNAIL_SERVER=
ENV CORS_PROXY_SERVER=
ENV NON_CORS_PROXY_DOMAINS=
ENV SENTRY_DSN=
ENV GA_TRACKING_ID=
ENV IS_MOZ=false
WORKDIR /spoke
RUN ./scripts/replace_env_stub.sh
RUN cp /spoke/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]