Commit 33d063c1 authored by nano's avatar nano

entrypoint

parent 7c5aeef1
This diff is collapsed.
......@@ -12,4 +12,4 @@ RUN npm install
COPY . /usr/src/app
EXPOSE 8080
CMD ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]
......@@ -22,7 +22,7 @@ import config from '../../config';
const checkPackage = async (file) => {
if (['application/zip', 'application/gz', 'application/rar', 'application/7z', 'application/x-gzip'].indexOf(file.mime) === -1) {
console.log(file.mime)
console.log(file.mime);
throw new Error(`Unsupported file type: ${file.mime}`);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment