mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed Dockerfile to use build instead of dist
This commit is contained in:
parent
8c9cbabd2f
commit
340ba47d40
2 changed files with 22 additions and 22 deletions
|
@ -13,27 +13,27 @@ module.exports = {
|
||||||
enable: false,
|
enable: false,
|
||||||
mode: 'file',
|
mode: 'file',
|
||||||
},
|
},
|
||||||
// jest: {
|
jest: {
|
||||||
// setupTestFrameworkScriptFile: "<rootDir>/src/setupTests.js",
|
setupTestFrameworkScriptFile: "<rootDir>/src/setupTests.js",
|
||||||
// configure: {
|
configure: {
|
||||||
// moduleNameMapper: {
|
moduleNameMapper: {
|
||||||
// "^~/(.*)$": "<rootDir>/src/$1",
|
"^~/(.*)$": "<rootDir>/src/$1",
|
||||||
// "^.+\\.scss$": "identity-obj-proxy"
|
"^.+\\.scss$": "identity-obj-proxy"
|
||||||
// },
|
},
|
||||||
// snapshotSerializers: ["enzyme-to-json/serializer"],
|
snapshotSerializers: ["enzyme-to-json/serializer"],
|
||||||
// moduleFileExtensions: ["js", "json", "ts", "tsx", "jsx", "node"],
|
moduleFileExtensions: ["js", "json", "ts", "tsx", "jsx", "node"],
|
||||||
// verbose: true,
|
verbose: true,
|
||||||
// roots: ["<rootDir>/src"],
|
roots: ["<rootDir>/src"],
|
||||||
// transform: {
|
transform: {
|
||||||
// "^.+\\.tsx?$": "ts-jest",
|
"^.+\\.tsx?$": "ts-jest",
|
||||||
// "^.+\\.ts?$": "babel-jest",
|
"^.+\\.ts?$": "babel-jest",
|
||||||
// "^.+\\.js?$": "ts-jest",
|
"^.+\\.js?$": "ts-jest",
|
||||||
// "^.+\\.jsx?$": "babel-jest"
|
"^.+\\.jsx?$": "babel-jest"
|
||||||
// },
|
},
|
||||||
// preset: "ts-jest/presets/js-with-ts",
|
preset: "ts-jest/presets/js-with-ts",
|
||||||
// testEnvironment: "node"
|
testEnvironment: "node"
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
{
|
{
|
||||||
plugin: CracoAlias,
|
plugin: CracoAlias,
|
||||||
|
|
|
@ -8,6 +8,6 @@ RUN yarn build
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
|
||||||
RUN rm -rf /usr/share/nginx/html/*
|
RUN rm -rf /usr/share/nginx/html/*
|
||||||
COPY --from=builder /dist /usr/share/nginx/html
|
COPY --from=builder /build /usr/share/nginx/html
|
||||||
EXPOSE ${EXPOSE} 80
|
EXPOSE ${EXPOSE} 80
|
||||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue