mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-02 21:03:43 -05:00
* feat: initial button setup client * feat: rename walletsButton to .tsx * chore: typescriptize wallet component * chore: re-add keys to config, env, etc + check in gatsby-node * feat: refactor donate form and wallet component * feat(client): set labels correctly * chore: add stripe package back to server * chore: add stripe back to allowed paths * chore: copy donate.js code from PR #41924 * feat: attempt to make back end work * feat: make redux work * feat: clean up * feat: hokify * feat: add error handling * fix: back-end should be working * fix: type errors * fix: clean up back-end * feat:addd styles * feat: connect the client to the api * feat: display wallets button everywhere * test: add stripe key for cypress action * test: fix for cypress tests * test: cypress tests again * test: maybe? * test: more * test: more * test: more * test * askdfjasklfj * fix: tests finally? * revert: remove space from cypress yaml action * remove logs Co-authored-by: moT01 <20648924+moT01@users.noreply.github.com> Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
41 lines
1.1 KiB
Docker
41 lines
1.1 KiB
Docker
FROM node:14.17.4-buster AS builder
|
|
|
|
# this is a bit clunky, perhaps there's a more concise way of passing in build
|
|
# arguments
|
|
ARG FREECODECAMP_NODE_ENV
|
|
ARG HOME_LOCATION
|
|
ARG API_LOCATION
|
|
ARG FORUM_LOCATION
|
|
ARG NEWS_LOCATION
|
|
ARG CLIENT_LOCALE
|
|
ARG CURRICULUM_LOCALE
|
|
ARG ALGOLIA_APP_ID
|
|
ARG ALGOLIA_API_KEY
|
|
ARG STRIPE_PUBLIC_KEY
|
|
ARG PAYPAL_CLIENT_ID
|
|
ARG DEPLOYMENT_ENV
|
|
ARG SHOW_UPCOMING_CHANGES
|
|
|
|
# node images create a non-root user that we can use
|
|
USER node
|
|
WORKDIR /home/node/build
|
|
COPY --chown=node:node . .
|
|
RUN npm ci
|
|
# we don't need to separately run ensure-env, since it gets called as part of
|
|
# build:client
|
|
RUN npm run build:client
|
|
|
|
WORKDIR /home/node/config
|
|
RUN git clone https://github.com/freeCodeCamp/client-config.git client
|
|
|
|
FROM node:14.17.4-alpine
|
|
RUN npm i -g serve
|
|
USER node
|
|
WORKDIR /home/node
|
|
COPY --from=builder /home/node/build/client/public/ client/public
|
|
COPY --from=builder /home/node/config/client/serve.json client
|
|
COPY --from=builder /home/node/config/client/www/ client
|
|
|
|
ENTRYPOINT ["serve", "-c", "../serve.json", "client/public"]
|
|
CMD ["-l", "8000"]
|