Commit 34ed7cf3 authored by Anthony Jacob's avatar Anthony Jacob
Browse files

change DockerFile after npm changes

parent dbf089d6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ def contact():
    """


    url = f"{current_app.config["API_URL"]}/email"
    url = f"{current_app.config['API_URL']}/email"

    payload = json.dumps({
    "email": "contact@anthony-jacob.com",
@@ -101,7 +101,7 @@ def receiveResume():
        attachment = "Anthony_JACOB_Resume.pdf"


    url = f"{current_app.config["API_URL"]}/email"
    url = f"{current_app.config['API_URL']}/email"

    payload = json.dumps({
        "email": data["email"],
@@ -117,7 +117,7 @@ def receiveResume():
    }

    try:
        response = requests.request("POST", url, headers=headers, data=payload, verify=False)
        response = requests.request("POST", url, headers=headers, data=payload)
        response.raise_for_status()
        return jsonify({"response": response.text}), 200

+0 −63
Original line number Diff line number Diff line
@@ -6,39 +6,10 @@
    "": {
      "dependencies": {
        "bootstrap-icons": "^1.11.3",
        "front": "file:../../../..",
        "less": "^4.3.0",
        "sweetalert2": "^11.19.1"
      }
    },
    "node_modules/@popperjs/core": {
      "version": "2.11.8",
      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
      "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
      "peer": true,
      "funding": {
        "type": "opencollective",
        "url": "https://opencollective.com/popperjs"
      }
    },
    "node_modules/bootstrap": {
      "version": "5.3.5",
      "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.5.tgz",
      "integrity": "sha512-ct1CHKtiobRimyGzmsSldEtM03E8fcEX4Tb3dGXz1V8faRwM50+vfHwTzOxB3IlKO7m+9vTH3s/3C6T2EAPeTA==",
      "funding": [
        {
          "type": "github",
          "url": "https://github.com/sponsors/twbs"
        },
        {
          "type": "opencollective",
          "url": "https://opencollective.com/bootstrap"
        }
      ],
      "peerDependencies": {
        "@popperjs/core": "^2.11.8"
      }
    },
    "node_modules/bootstrap-icons": {
      "version": "1.11.3",
      "resolved": "https://registry.npmjs.org/bootstrap-icons/-/bootstrap-icons-1.11.3.tgz",
@@ -77,21 +48,6 @@
        "errno": "cli.js"
      }
    },
    "node_modules/es6-object-assign": {
      "version": "1.1.0",
      "resolved": "https://registry.npmjs.org/es6-object-assign/-/es6-object-assign-1.1.0.tgz",
      "integrity": "sha512-MEl9uirslVwqQU369iHNWZXsI8yaZYGg/D65aOgZkeyFJwHYSxilf7rQzXKI7DdDuBPrBXbfk3sl9hJhmd5AUw=="
    },
    "node_modules/front": {
      "version": "1.0.0",
      "resolved": "file:../../../..",
      "license": "ISC",
      "dependencies": {
        "bootstrap": "^5.3.5",
        "jquery": "^3.7.1",
        "sweetalert": "^2.1.2"
      }
    },
    "node_modules/graceful-fs": {
      "version": "4.2.11",
      "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
@@ -127,11 +83,6 @@
      "resolved": "https://registry.npmjs.org/is-what/-/is-what-3.14.1.tgz",
      "integrity": "sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA=="
    },
    "node_modules/jquery": {
      "version": "3.7.1",
      "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.1.tgz",
      "integrity": "sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg=="
    },
    "node_modules/less": {
      "version": "4.3.0",
      "resolved": "https://registry.npmjs.org/less/-/less-4.3.0.tgz",
@@ -215,11 +166,6 @@
        "node": ">=6"
      }
    },
    "node_modules/promise-polyfill": {
      "version": "6.1.0",
      "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-6.1.0.tgz",
      "integrity": "sha512-g0LWaH0gFsxovsU7R5LrrhHhWAWiHRnh1GPrhXnPgYsDkIqjRYUYSZEsej/wtleDrz5xVSIDbeKfidztp2XHFQ=="
    },
    "node_modules/prr": {
      "version": "1.0.1",
      "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz",
@@ -256,15 +202,6 @@
        "node": ">=0.10.0"
      }
    },
    "node_modules/sweetalert": {
      "version": "2.1.2",
      "resolved": "https://registry.npmjs.org/sweetalert/-/sweetalert-2.1.2.tgz",
      "integrity": "sha512-iWx7X4anRBNDa/a+AdTmvAzQtkN1+s4j/JJRWlHpYE8Qimkohs8/XnFcWeYHH2lMA8LRCa5tj2d244If3S/hzA==",
      "dependencies": {
        "es6-object-assign": "^1.1.0",
        "promise-polyfill": "^6.0.2"
      }
    },
    "node_modules/sweetalert2": {
      "version": "11.19.1",
      "resolved": "https://registry.npmjs.org/sweetalert2/-/sweetalert2-11.19.1.tgz",
+0 −1
Original line number Diff line number Diff line
{
  "dependencies": {
    "bootstrap-icons": "^1.11.3",
    "front": "file:../../../..",
    "less": "^4.3.0",
    "sweetalert2": "^11.19.1"
  }
+4 −1
Original line number Diff line number Diff line
@@ -14,8 +14,11 @@ EXPOSE 8181

COPY ./app /app


WORKDIR /app/public/inc/vendor/
RUN npm install

WORKDIR /app
RUN npm install --prefix public/inc/vendor/
RUN lessc public/inc/vendor/anthonygj/site.less public/inc/vendor/anthonygj/site.css

ENTRYPOINT [ "sh" , "/entrypoint/entrypoint.sh" ]