Skip to content
Extraits de code Groupes Projets
Sélectionner une révision Git
  • 037da86af438437f362131ee78691fe3aa9ea491
  • master par défaut protégée
  • rust
  • rust-playlist-sync
  • fix-qt-deprecated-qvariant-type
  • fix-mpris-qtwindow-race-condition
  • rust-appimage-wayland
  • windows-build-rebased
  • v2.5 protégée
  • v2.4 protégée
  • v2.3-1 protégée
  • v2.3 protégée
  • v2.2 protégée
  • v2.1 protégée
  • v2.0 protégée
  • v1.8-3 protégée
  • v1.8-2 protégée
  • v1.8-1 protégée
  • v1.8 protégée
  • v1.7 protégée
  • v1.6 protégée
  • v1.5 protégée
  • v1.4 protégée
  • v1.3 protégée
  • v1.2 protégée
  • v1.1 protégée
  • v1.0 protégée
27 résultats

Dockerfile

Blame
  • Dockerfile 709 o
    FROM node:16-alpine AS BUILD
    COPY . /tmp/src
    # install some dependencies needed for the build process
    RUN apk add --no-cache -t build-deps make gcc g++ python ca-certificates libc-dev wget git
    RUN cd /tmp/src \
        && yarn
    
    FROM node:16-alpine
    ENV NODE_ENV=production
    COPY --from=BUILD /tmp/src/build /build
    COPY --from=BUILD /tmp/src/config /config
    COPY --from=BUILD /tmp/src/node_modules /node_modules
    RUN sh -c 'cd /build/tools; for TOOL in *.js; do LINK="/usr/bin/$(basename $TOOL .js)"; echo -e "#!/bin/sh\ncd /data;\nnode /build/tools/$TOOL \$@" > $LINK; chmod +x $LINK; done'
    CMD node /build/src/discordas.js -p 9005 -c /data/config.yaml -f /data/discord-registration.yaml
    EXPOSE 9005
    VOLUME ["/data"]