Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
give permission docker
Browse files- Dockerfile +2 -2
- src/lib/components/models/Submit.svelte +0 -1
Dockerfile
CHANGED
@@ -17,8 +17,8 @@ RUN npm install
|
|
17 |
COPY --chown=1000 . .
|
18 |
RUN chmod +x entrypoint.sh
|
19 |
|
20 |
-
#
|
21 |
-
|
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: '',
|