Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.git
nodemodules
.eslint*
.prettier*
.git*
.vscode
README.md
Dockerfile*
docker-compose.yml
public
.cache
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:19

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 8000

CMD ["npm", "run", "develop"]
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
app:
build: .
ports:
- "8000:8000"
31 changes: 24 additions & 7 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,29 @@ module.exports = {
title: `SFL Website v2`,
siteUrl: `https://www.yourdomain.tld`
},
plugins: ["gatsby-plugin-google-gtag", "gatsby-plugin-sitemap", "gatsby-plugin-mdx", {
resolve: 'gatsby-source-filesystem',
options: {
"name": "pages",
"path": "./src/pages/"
plugins: [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"UA-1111111111-1" // TODO: change to our own ID
],
gtagConfig: {
anonymize_ip: true,
},
pluginConfig: {
head: true,
},
},
},
__key: "pages"
}]
"gatsby-plugin-sitemap",
"gatsby-plugin-mdx",
{
resolve: 'gatsby-source-filesystem',
options: {
"name": "pages",
"path": "./src/pages/"
},
__key: "pages"
}]
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"gatsby"
],
"scripts": {
"develop": "gatsby develop",
"develop": "gatsby develop -H 0.0.0.0",
"start": "gatsby develop",
"build": "gatsby build",
"serve": "gatsby serve",
Expand All @@ -29,4 +29,4 @@
"react": "^18.2.0"
}
}
}
}