Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
FROM node:15 as dist
FROM node:22 AS dist

ARG COMPILER_PARAM=""
ENV COMPILER_PARAM=$COMPILER_PARAM

RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.list
RUN apt-get update && apt-get install -y git apt-transport-https software-properties-common
RUN apt-get update
RUN apt-get -y install openjdk-8-jre

RUN wget https://github.com/sbt/sbt/releases/download/v1.5.0/sbt-1.5.0.tgz
RUN tar xzvf sbt-1.5.0.tgz -C /usr/share/
RUN update-alternatives --install /usr/bin/sbt sbt /usr/share/sbt/bin/sbt 9999
#RUN apt-get -y install sbt openjdk-8-jre
#RUN RUN RUN, why not? :)

WORKDIR /
COPY . /
RUN sh /scripts/build.sh

FROM nginx:latest

COPY nginx-ide.conf /etc/nginx/conf.d/
COPY --from=dist /dist /usr/share/nginx/dist
RUN nginx -t
RUN nginx -t
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:10
FROM node:22
WORKDIR /app
COPY . /app
RUN npm install
Expand Down
39 changes: 39 additions & 0 deletions backend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const tsParser = require('@typescript-eslint/parser');
const tsPlugin = require('@typescript-eslint/eslint-plugin');
const importPlugin = require('eslint-plugin-import');
const prettierPlugin = require('eslint-plugin-prettier');

module.exports = [
{
ignores: [
'dist/**',
'build/**',
'node_modules/**',
'src/json-data/test-typings.json'
]
},
{
files: ['**/*.{ts,tsx,js,jsx}'],
languageOptions: {
parser: tsParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
}
},
plugins: {
'@typescript-eslint': tsPlugin,
import: importPlugin,
prettier: prettierPlugin
},
rules: {
'prettier/prettier': 'off',
'import/no-unresolved': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }]
}
}
];
Loading