Comments (2)
from pi-weather-station.
FWIW - I decided to try to build my own Docker image for the project until Sean gets a chance to update his image (if he decides to do so.)
It seems to work fine as long as the /server/index.js
workaround described on the repo is done. It's fairly basic and I'm sure doesn't follow any Docker best practices, but it works.
FROM node:18-alpine
RUN mkdir /home/node/app
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
WORKDIR /home/node/app
COPY --chown=node:node pi-weather-station/package*.json ./
USER node
RUN npm install
COPY --chown=node:node pi-weather-station/. .
EXPOSE 8080
CMD [ "npm", "start" ]
- Put the above commands in a file names
Dockerfile
in a build directory. git clone https://github.com/elewin/pi-weather-station.git
in that directory- Apply the
server/index.js
workaround mentioned above. - Run:
docker build -t weather-station:0.0.1 .
in the build directory. - Run the container using your preferred method:
CLI
docker run -itd --name weather-station -p 8080:8080 -v -v appdata:/app weather-station:0.0.1
Docker Compose (my preferred method)
version: '3'
services:
weather-station:
image: weather-station:0.0.1
container_name: weather-station
ports:
- "8080:8080"
volumes:
- appdata:/app
restart: unless-stopped
volumes:
appdata:
Feel free to ping me if you have any questions (or spot any issues).
from pi-weather-station.
Related Issues (20)
- Client Build Production version and Deploy to Web Container.
- Error 403 for 7-day weather forecast HOT 23
- 7 Day forecast no longer working HOT 1
- Startup Screen flashes and disappears HOT 1
- Cannot see map HOT 3
- NOT AN ISSUE...Just a question about map colors HOT 3
- 5 Day Forecast on docker HOT 7
- Entering API keys on browser pop-up. HOT 1
- Font size
- blinking clouds
- No temperature, wrong weather icon
- Map, weather, geolocation populates with keys, precipitation map cover shows, but no map layer underneath showing countries, cities, etc.
- 5 Day Forecast Error with Status Code 403
- openweathermap option?
- Adding localization option HOT 1
- Action Required: Migrate Your Tomorrow.io API Domain HOT 3
- Another map API? HOT 1
- code: 'MODULE_NOT_FOUND',
- Map not showing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-weather-station.