SquadJS icon indicating copy to clipboard operation
SquadJS copied to clipboard

Dockerfile and Action for creating Docker image in GitHub's registry

Open Sentennial opened this issue 1 year ago • 8 comments

Sentennial avatar Nov 05 '23 14:11 Sentennial

Any update about this merge request ? Would be glad to see this container in action ! :)

sullivandavid42 avatar Apr 13 '24 05:04 sullivandavid42

@sullivandavid42 legit didn’t know this was a PR. The docker file at a minimum is broken as such I can’t push this. Will make a change request when I can.

werewolfboy13 avatar Apr 13 '24 07:04 werewolfboy13

Yes, you don't need to install nodejs / pm2 in your system. Its just an option if somebody want to run it via docker (For example we are running it in docker from day 0)

wojski avatar Apr 13 '24 12:04 wojski

Working dockerfile if anyone need ;)

FROM node:18.17-alpine
USER node
RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY --chown=node . .
RUN yarn install && yarn cache clean
CMD ["node", "index.js"]

wojski avatar Apr 13 '24 12:04 wojski

Working dockerfile if anyone need ;)

FROM node:18.17-alpine
USER node
RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY --chown=node . .
RUN yarn install && yarn cache clean
CMD ["node", "index.js"]

So is this for Windows aswell then or just Linux? Because here it only lists Linux, although top right says "multiplatform".

grafik

D4n2021 avatar Apr 13 '24 12:04 D4n2021

Working dockerfile if anyone need ;)

FROM node:18.17-alpine
USER node
RUN mkdir -p /home/node/app
WORKDIR /home/node/app
COPY --chown=node . .
RUN yarn install && yarn cache clean
CMD ["node", "index.js"]

So is this for Windows aswell then or just Linux?

Docker works on Linux and Windows (on WSL) and the docker image is used to standardize the environment that will run an application, regardless of the OS.

fantinodavide avatar Apr 13 '24 13:04 fantinodavide

Just edited my previous post.

D4n2021 avatar Apr 13 '24 13:04 D4n2021

Just edited my previous post.

This is becoming off-topic but I can suggest to read this page in which everything is very well explained: https://docs.docker.com/get-started/overview/ If you need more clarifications I also suggest to move this conversation on discord, feel free to DM me, my username is jetdave

fantinodavide avatar Apr 13 '24 13:04 fantinodavide