dockerize site
This commit is contained in:
parent
4b666a9215
commit
58ebf72d9a
6 changed files with 46 additions and 3 deletions
17
.dockerignore
Normal file
17
.dockerignore
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
.dockerignore
|
||||
.git
|
||||
.gitignore
|
||||
.gitattributes
|
||||
README.md
|
||||
.npmrc
|
||||
.prettierrc
|
||||
.eslintrc.cjs
|
||||
.graphqlrc
|
||||
.editorconfig
|
||||
.svelte-kit
|
||||
.vscode
|
||||
node_modules
|
||||
build
|
||||
package
|
||||
**/.env
|
||||
|
||||
19
Dockerfile
Normal file
19
Dockerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Use a Node.js Alpine image for the builder stage
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
RUN npm prune --production
|
||||
|
||||
# Use another Node.js Alpine image for the final stage
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build build/
|
||||
COPY --from=builder /app/node_modules node_modules/
|
||||
COPY package.json .
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
CMD [ "node", "build" ]
|
||||
|
||||
|
|
@ -16,6 +16,7 @@
|
|||
"devDependencies": {
|
||||
"@eslint/compat": "^1.2.5",
|
||||
"@eslint/js": "^9.18.0",
|
||||
"@sveltejs/adapter-node": "^5.2.12",
|
||||
"@sveltejs/adapter-static": "^3.0.8",
|
||||
"@sveltejs/kit": "^2.16.0",
|
||||
"@sveltejs/vite-plugin-svelte": "^5.0.0",
|
||||
|
|
@ -34,5 +35,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"remixicon": "^4.6.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-musl": "4.9.5"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ header {
|
|||
}
|
||||
|
||||
.hero {
|
||||
height: 100vh;
|
||||
height: 95vh;
|
||||
padding: 2rem 0rem;
|
||||
--margin: 3rem;
|
||||
& h1 {
|
||||
|
|
|
|||
|
|
@ -49,9 +49,11 @@
|
|||
<nav>
|
||||
<ul>
|
||||
<li><a href="#evenements">Événements</a></li>
|
||||
<li><a href="#archives">Archives</a></li>
|
||||
<li><a href="#principes">Déclaration de principes</a></li>
|
||||
<li><a href="#principes">transcolonialité. décolonisation.</a></li>
|
||||
<li><a href="#genocide">UdeM complice du génocide à Gaza</a></li>
|
||||
<li><a href="#bibliographie">Bibliographie sélective</a></li>
|
||||
<li><a href="#archives">Archives</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<button class="btn__theme" onclick={handlers.toggleTheme}
|
||||
|
|
@ -68,6 +70,7 @@
|
|||
{/each}
|
||||
<h2 id="archives">Archives</h2>
|
||||
<h2 id="principes">Déclaration de principes</h2>
|
||||
<h2 id="genocide">UdeM complice du génocide à Gaza</h2>
|
||||
<h2 id="bibliographie">Bibliographie sélective</h2>
|
||||
<article>
|
||||
<p>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { mdsvex } from 'mdsvex';
|
||||
import adapter from '@sveltejs/adapter-static';
|
||||
import adapter from '@sveltejs/adapter-node';
|
||||
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
||||
|
||||
const config = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue