Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
•
4687ea3
1
Parent(s):
271c11a
fix build
Browse files- Dockerfile +1 -1
- frontend/next.config.js +0 -10
Dockerfile
CHANGED
@@ -43,7 +43,7 @@ COPY ./requirements.txt /code/requirements.txt
|
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
44 |
|
45 |
# Set the working directory to the user's home directory
|
46 |
-
WORKDIR $HOME/app
|
47 |
|
48 |
# Copy package.json and package-lock.json
|
49 |
COPY --chown=user frontend/package*.json frontend/
|
|
|
43 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
44 |
|
45 |
# Set the working directory to the user's home directory
|
46 |
+
#WORKDIR $HOME/app
|
47 |
|
48 |
# Copy package.json and package-lock.json
|
49 |
COPY --chown=user frontend/package*.json frontend/
|
frontend/next.config.js
CHANGED
@@ -2,16 +2,6 @@
|
|
2 |
const nextConfig = {
|
3 |
reactStrictMode: false,
|
4 |
output: "export",
|
5 |
-
webpack: (config) => {
|
6 |
-
// See https://webpack.js.org/configuration/resolve/#resolvealias
|
7 |
-
config.output.globalObject = "this";
|
8 |
-
config.resolve.alias = {
|
9 |
-
...config.resolve.alias,
|
10 |
-
sharp$: false,
|
11 |
-
"onnxruntime-node$": false,
|
12 |
-
};
|
13 |
-
return config;
|
14 |
-
},
|
15 |
};
|
16 |
|
17 |
module.exports = nextConfig;
|
|
|
2 |
const nextConfig = {
|
3 |
reactStrictMode: false,
|
4 |
output: "export",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
};
|
6 |
|
7 |
module.exports = nextConfig;
|