-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): faster build, prod setup only
- Loading branch information
Julien Bouquillon
committed
Oct 3, 2018
1 parent
caea169
commit 4e0c748
Showing
10 changed files
with
69 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
NODE_ENV=development | ||
API_URL=http://127.0.0.1:1337/api/v1 | ||
PORT=3000 | ||
PORT=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
version: '3' | ||
|
||
services: | ||
networks: | ||
|
||
node: | ||
container_name: code-du-travail-explorer | ||
env_file: | ||
- .env | ||
build: | ||
context: . | ||
dockerfile: ./docker/prod/Dockerfile | ||
args: | ||
NODE_ENV: $NODE_ENV | ||
API_URL: $API_URL | ||
PORT: $PORT | ||
ports: | ||
- $PORT:$PORT | ||
restart: always | ||
default: | ||
# The network used by the repository `code-du-travail-data` must be active first. | ||
external: | ||
name: codedutravaildata_default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
module.exports = { | ||
"process.env.NODE_ENV": process.env.NODE_ENV, | ||
"process.env.API_URL": process.env.API_URL | ||
"process.env.API_URL": process.env.API_URL, | ||
"process.env.SENTRY_PUBLIC_DSN": process.env.SENTRY_PUBLIC_DSN | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const withCSS = require("@zeit/next-css"); | ||
const withImages = require("next-images"); | ||
//const withImages = require("next-images"); | ||
|
||
require("dotenv").config(); | ||
|
||
module.exports = withImages( | ||
withCSS({ | ||
// use routes.js | ||
useFileSystemPublicRoutes: false | ||
}) | ||
); | ||
module.exports = withCSS({ | ||
// use routes.js | ||
useFileSystemPublicRoutes: false, | ||
poweredByHeader: false | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters