-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (27 loc) · 1.14 KB
/
Dockerfile
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
FROM node:14-alpine3.14 AS builder
WORKDIR /opt/accounts
COPY package.json yarn.lock ./
RUN yarn install
COPY babel.config.js vue.config.js ./
COPY public ./public/
COPY src ./src/
RUN yarn build
FROM nginx:stable-alpine
RUN rm /etc/nginx/conf.d/*
COPY nginx.conf /etc/nginx/conf.d/site.conf
COPY --from=builder /opt/accounts/dist/ /srv/accounts/
ENV IAM_BASE_URL=http://localhost:8080/v1 \
IAM_LOGIN_URL=/users/\${username}/login \
IAM_VERIFY_URL=/users/\${username}/login \
IAM_CREATE_ACCOUNT_URL=/users \
IAM_GET_USER_DATA_URL=/users/self \
IAM_UPDATE_USER_DATA_URL=/users/self
ENV PAYMENT_BASE_URL=http://localhost:4242 \
PAYMENT_CREATE_SESSION_URL=/create-session
ENV STRIPE_PUBLIC_KEY=
ENV [email protected] \
MAIN_WEBSITE_URL=http://localhost:4000/services/ \
BLURB="We provide free web hosting and file storage on our servers, tech talks and tutorials for all skill levels. Learn how to build your own webpage and host it on our servers! Find out more by clicking on our logo above!"
COPY entrypoint.sh /accounts-entrypoint.sh
ENTRYPOINT ["/accounts-entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]