Skip to content

Commit 21426b4

Browse files
committed
bumped node and removed gulp
1 parent 62b9b51 commit 21426b4

File tree

2 files changed

+2
-43
lines changed

2 files changed

+2
-43
lines changed

Dockerfile

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
FROM debian:bookworm-slim AS build-frontend
1+
FROM node:16-bookworm AS build-frontend
22
# I'd love to use a node image but our version of node is too old :)
33

44
RUN mkdir /opt/conditional
55

66
WORKDIR /opt/conditional
77

8-
ENV NVM_DIR /usr/local/nvm
9-
ENV NODE_VERSION v10.24.1
10-
RUN mkdir -p $NVM_DIR
11-
128
RUN apt-get -yq update && \
139
apt-get -yq install curl git
1410

15-
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
16-
17-
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION"
18-
1911
RUN curl -O -L https://github.com/sass/dart-sass/releases/download/1.93.2/dart-sass-1.93.2-linux-x64.tar.gz && tar -xzvf dart-sass-*.tar.gz
2012
ENV PATH="$PATH:/opt/conditional/dart-sass"
2113

@@ -24,8 +16,7 @@ COPY package.json package-lock.json /opt/conditional/
2416
COPY build*.js /opt/conditional
2517
COPY frontend /opt/conditional/frontend
2618

27-
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && npm ci"
28-
RUN /bin/bash -c "source $NVM_DIR/nvm.sh && npm run build"
19+
RUN npm ci && npm run build
2920

3021
FROM docker.io/python:3.12-slim-bookworm
3122
MAINTAINER Computer Science House <webmaster@csh.rit.edu>

package.json

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@
1717
"npm": ">=6.14.8"
1818
},
1919
"scripts": {
20-
"start": "gulp",
21-
"gulp": "gulp",
22-
"development": "gulp",
23-
"production": "gulp production",
24-
"deploy": "gulp deploy",
25-
"demo": "gulp production",
2620
"webpack": "node build-webpack.js",
2721
"scss": "node build-css.js",
2822
"build": "npm run webpack && npm run scss && cp -r node_modules/bootstrap-icons/font/fonts conditional/static/css/fonts"
@@ -60,32 +54,6 @@
6054
"eslint-config-google": "^0.6.0",
6155
"exports-loader": "^0.6.3",
6256
"expose-loader": "^0.7.1",
63-
"gulp": "3.9.1",
64-
"gulp-autoprefixer": "3.1.0",
65-
"gulp-changed": "1.3.0",
66-
"gulp-csscomb": "^3.0.7",
67-
"gulp-cssnano": "2.1.2",
68-
"gulp-data": "1.2.1",
69-
"gulp-eslint": "^3.0.1",
70-
"gulp-gh-pages": "0.5.4",
71-
"gulp-htmlmin": "2.0.0",
72-
"gulp-if": "2.0.1",
73-
"gulp-imagemin": "3.0.1",
74-
"gulp-notify": "2.2.0",
75-
"gulp-nunjucks-render": "2.0.0",
76-
"gulp-rename": "1.2.2",
77-
"gulp-rev": "7.1.0",
78-
"gulp-rev-napkin": "0.1.0",
79-
"gulp-rev-replace": "0.4.3",
80-
"gulp-sass": "^3.2.1",
81-
"gulp-sass-lint": "^1.4.0",
82-
"gulp-sequence": "0.4.5",
83-
"gulp-sizereport": "1.1.3",
84-
"gulp-sourcemaps": "1.6.0",
85-
"gulp-svgstore": "6.0.0",
86-
"gulp-uglify": "1.5.4",
87-
"gulp-util": "3.0.7",
88-
"gulp-watch": "4.3.8",
8957
"imports-loader": "^0.6.5",
9058
"lolex": "1.5.0",
9159
"mocha": "2.5.3",

0 commit comments

Comments
 (0)