Skip to content

Commit

Permalink
Merge pull request #59 from 20tab/feature/1024-docker-images-upgrade
Browse files Browse the repository at this point in the history
TG-1024 Docker images upgrade
  • Loading branch information
lucaspinosi authored Jan 10, 2024
2 parents 7232aea + f95636b commit 804c03a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions {{cookiecutter.project_dirname}}/docker/cypress.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# syntax=docker/dockerfile:1

FROM cypress/base:16.18.1
FROM cypress/base:18.16.1
ARG USER=appuser
ENV APPUSER=$USER PATH="$PATH:./node_modules/.bin"
ENV APPUSER=$USER \
CYPRESS_CACHE_FOLDER="/home/$USER/.cache/Cypress" \
PATH="$PATH:./node_modules/.bin"
WORKDIR /app
RUN useradd --skel /dev/null --create-home $APPUSER
RUN chown $APPUSER:$APPUSER /app
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/docker/local.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM node:16-bullseye-slim
FROM node:18-bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive GROUP_ID=1000 USER_ID=1000 USER=appuser
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 NEXT_TELEMETRY_DISABLED=1 NODE_ENV="development" USER=$USER WORKDIR=/app
RUN apt-get update \
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/docker/remote.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM node:16-alpine AS build
FROM node:18-alpine AS build
ENV PATH="$PATH:./node_modules/.bin"
WORKDIR /app
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.project_dirname}}/docker/test.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM node:16-bullseye-slim
FROM node:18-bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive USER=appuser
ENV APPUSER=$USER LANG=C.UTF-8 LC_ALL=C.UTF-8 NEXT_TELEMETRY_DISABLED=1 NODE_ENV="development" PATH="$PATH:./node_modules/.bin" TZ='Europe/Rome' WORKDIR=/app
RUN apt-get update \
Expand Down

0 comments on commit 804c03a

Please sign in to comment.