Esteves Enzo commited on
Commit
deddf1b
·
1 Parent(s): 9df11bd

dockerfile updated

Browse files
Dockerfile CHANGED
@@ -12,6 +12,12 @@ COPY package.json package-lock.json ./
12
  # Install dependencies
13
  RUN npm install
14
 
 
 
 
 
 
 
15
  # Copy the rest of the application files to the container
16
  COPY . .
17
 
 
12
  # Install dependencies
13
  RUN npm install
14
 
15
+ # set all permissions to write to the /data folder to the user
16
+ RUN chown -R node:node /data
17
+ USER node
18
+
19
+ VOLUME /data
20
+
21
  # Copy the rest of the application files to the container
22
  COPY . .
23
 
components/header.tsx CHANGED
@@ -8,7 +8,7 @@ import classNames from "classnames";
8
 
9
  export const Header = () => {
10
  const { hasMadeFirstGeneration } = useInputGeneration();
11
- console.log(hasMadeFirstGeneration);
12
  return (
13
  <header
14
  className={classNames(
 
8
 
9
  export const Header = () => {
10
  const { hasMadeFirstGeneration } = useInputGeneration();
11
+
12
  return (
13
  <header
14
  className={classNames(
components/main/hooks/useCollections.ts CHANGED
@@ -11,8 +11,6 @@ export const useCollections = () => {
11
  const response = await fetch("/api/collections", { method: "GET" })
12
  const data = await response.json()
13
 
14
- console.log(data)
15
-
16
  if (!response.ok) {
17
  throw new Error(data.message)
18
  }
 
11
  const response = await fetch("/api/collections", { method: "GET" })
12
  const data = await response.json()
13
 
 
 
14
  if (!response.ok) {
15
  throw new Error(data.message)
16
  }