enzostvs HF staff commited on
Commit
d17c1bc
β€’
1 Parent(s): f91a1ec

give permission docker

Browse files
Dockerfile CHANGED
@@ -17,8 +17,8 @@ RUN npm install
17
  COPY --chown=1000 . .
18
  RUN chmod +x entrypoint.sh
19
 
20
- # Build the Svelte Kit application for production
21
- # RUN npm run build
22
 
23
  # Expose the application port (assuming your app runs on port 3000)
24
  EXPOSE 3000
 
17
  COPY --chown=1000 . .
18
  RUN chmod +x entrypoint.sh
19
 
20
+ # run command to give user right permission to write in data volume
21
+ RUN chown -R 1000:1000 /usr/src/app
22
 
23
  # Expose the application port (assuming your app runs on port 3000)
24
  EXPOSE 3000
src/lib/components/models/Submit.svelte CHANGED
@@ -31,7 +31,6 @@
31
  if (data.error) {
32
  error = data.error;
33
  } else {
34
- console.log('Success:', data);
35
  error = {
36
  id: '',
37
  title: '',
 
31
  if (data.error) {
32
  error = data.error;
33
  } else {
 
34
  error = {
35
  id: '',
36
  title: '',