Visual Studio Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo Pulling latest image... | |
docker pull portainer/portainer-ce:latest | |
echo Deploying... | |
docker run -d -p 8000:8000 -p 9000:9000 -p 9443:9443 \ | |
--name=portainer --restart=always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v portainer_data:/data \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Determine if an object is a Buffer | |
* | |
* @author Feross Aboukhadijeh <https://feross.org> | |
* @license MIT | |
*/ | |
/*! | |
* The buffer module from node.js, for the browser. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:alpine3.18 AS base | |
LABEL version="1.0" | |
LABEL author="Galitan-dev" | |
WORKDIR /run | |
FROM base AS dependencies | |
RUN [ "npm", "install", "discord.js" ] | |
FROM dependencies AS code | |
ADD https://gist.github.com/Galitan-dev/4ad2501e43bd604f1c514898b7e5705d/raw/index.js /run/index.js |