Switch to Node 14

This commit is contained in:
Andreas Nedbal 2022-11-06 13:20:14 +01:00 committed by Andreas Nedbal
parent b1c0ba470c
commit 817ee1bdb8
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ ARG GID=1000
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get update -qq \ RUN apt-get update -qq \
&& apt-get install -y --no-install-recommends build-essential \ && apt-get install -y --no-install-recommends build-essential \
@ -47,4 +47,4 @@ COPY . /app
ENTRYPOINT ["entrypoint.sh"] ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000 EXPOSE 3000
CMD ["rails", "server", "-b", "0.0.0.0"] CMD ["rails", "server", "-b", "0.0.0.0"]

View File

@ -48,10 +48,10 @@ jobs:
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
bundler-cache: true bundler-cache: true
- name: Set up Node 12 - name: Set up Node 14
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '12' node-version: '14'
- name: Copy default configuration - name: Copy default configuration
run: | run: |
cp config/database.yml.postgres config/database.yml cp config/database.yml.postgres config/database.yml