Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs work on Dockerfile #42

Open
j2l opened this issue Apr 16, 2021 · 0 comments
Open

Needs work on Dockerfile #42

j2l opened this issue Apr 16, 2021 · 0 comments

Comments

@j2l
Copy link

j2l commented Apr 16, 2021

Hello,

A few things needs to be changed:
19.04 -> 20.04 because Ubuntu 19 was decommissioned (see https://askubuntu.com/questions/1238222/the-repository-http-security-ubuntu-com-ubuntu-disco-security-release-no-lon).

ENV TZ=Europe/Paris or else
...
RUN apt-get update
RUN apt-get install -y tzdata to prevent tz setup from stopping the build process and getting the TZ from ENV
...

After RUN mkdir /www/node_modules/:
RUN cd /wwwneeded to be sure we install in the right folder
RUN npm init -y needed for package.json

I had to change a few things to run+manage it with Portainer:
change auto-created container name to something permanent (TotalJS), its image to superadmin:1.5
manually add 8080 to 80
Interactive+TTY,
restart = until stopped
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant