zeon-studio / astroplate

Astroplate is a free starter template built with Astro, TailwindCSS & TypeScript providing everything you need to jumpstart your Astro project. Get started with Astroplate and save yourself hours of work!
https://zeon.studio/preview?project=astroplate
MIT License
576 stars 176 forks source link

Dockerfile does not work #8

Closed Alfagun74 closed 11 months ago

Alfagun74 commented 1 year ago

I tried to follow this Guide in the README:

image

but i got. Reproducable on the bare repository without changing anything.

docker run -p 3000:3000 astroplate                                                                                        ✔   28s  ⬢ 20.2.0  11:30:09 
node:internal/modules/cjs/loader:1080
  throw err;
  ^

Error: Cannot find module '/app/server.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v18.17.0
tfsomrat commented 1 year ago

Hey @Alfagun74

Sorry for the inconvenience, I also got the error on my site. I will fix it when I got some time. In the meantime you can follow their original docker file from here https://docs.astro.build/en/recipes/docker/#creating-a-dockerfile

jjaimealeman commented 1 year ago

As a semi-newb to using Astro, what's the purpose of using Docker here?

Alfagun74 commented 1 year ago

@jjaimealeman to deploy the site on a server for example.