1
0
Fork 0
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:
Fedor Katurov 2020-11-19 17:38:38 +07:00
parent 8c9cbabd2f
commit 340ba47d40
2 changed files with 22 additions and 22 deletions

View file

@ -13,27 +13,27 @@ module.exports = {
enable: false,
mode: 'file',
},
// jest: {
// setupTestFrameworkScriptFile: "<rootDir>/src/setupTests.js",
// configure: {
// moduleNameMapper: {
// "^~/(.*)$": "<rootDir>/src/$1",
// "^.+\\.scss$": "identity-obj-proxy"
// },
// snapshotSerializers: ["enzyme-to-json/serializer"],
// moduleFileExtensions: ["js", "json", "ts", "tsx", "jsx", "node"],
// verbose: true,
// roots: ["<rootDir>/src"],
// transform: {
// "^.+\\.tsx?$": "ts-jest",
// "^.+\\.ts?$": "babel-jest",
// "^.+\\.js?$": "ts-jest",
// "^.+\\.jsx?$": "babel-jest"
// },
// preset: "ts-jest/presets/js-with-ts",
// testEnvironment: "node"
// }
// },
jest: {
setupTestFrameworkScriptFile: "<rootDir>/src/setupTests.js",
configure: {
moduleNameMapper: {
"^~/(.*)$": "<rootDir>/src/$1",
"^.+\\.scss$": "identity-obj-proxy"
},
snapshotSerializers: ["enzyme-to-json/serializer"],
moduleFileExtensions: ["js", "json", "ts", "tsx", "jsx", "node"],
verbose: true,
roots: ["<rootDir>/src"],
transform: {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.ts?$": "babel-jest",
"^.+\\.js?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
preset: "ts-jest/presets/js-with-ts",
testEnvironment: "node"
}
},
plugins: [
{
plugin: CracoAlias,

View file

@ -8,6 +8,6 @@ RUN yarn build
FROM nginx:alpine
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
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
ENTRYPOINT ["nginx", "-g", "daemon off;"]