Skip to content
Snippets Groups Projects
Commit 112f4d09 authored by Alex's avatar Alex
Browse files

fix: preStop was missing in final Docker image

parent 55c32167
Branches
Tags
No related merge requests found
......@@ -16,9 +16,10 @@ COPY server.js /home/theia/src-gen/backend/server.js
COPY start.sh .
COPY recorder-out/dist/main.js deadlock/recorder.js
COPY recorder-out/dist/preStop.js deadlock/preStop.js
COPY .gitignore_recorder deadlock/.gitignore
RUN chmod 500 deadlock/ -R
RUN chmod 500 start.sh
ENTRYPOINT ["bash", "start.sh"]
\ No newline at end of file
ENTRYPOINT ["bash", "start.sh"]
......@@ -2,10 +2,13 @@ const path = require('path');
const TerserPlugin = require("terser-webpack-plugin");
module.exports = {
entry: './recorder/index.js',
entry: {
main: './recorder/index.js',
preStop: './recorder/preStop.js',
},
target: 'node',
output: {
filename: 'main.js',
filename: '[name].js',
path: path.resolve(__dirname, 'dist'),
},
optimization: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment