Update Gulp

This commit is contained in:
Andros Fenollosa 2023-04-13 11:00:18 +00:00
parent c6eb4a58fd
commit 9b88c22fbb
2 changed files with 19 additions and 14 deletions

View File

@ -1,19 +1,13 @@
FROM debian:unstable-slim
FROM node:18-alpine
# set work directory
WORKDIR /usr/src/app
# install software
RUN apt update
RUN apt -y upgrade
# dependencies
RUN apt install -y build-essential nodejs npm
COPY package.json .
COPY gulpfile.js .
# gulp
RUN npm install -g gulp-cli
# Add package.json
COPY package.json package.json
# dependencies gulp
RUN npm i --global gulp-cli
RUN npm i
RUN npm cache clean --force
CMD gulp

View File

@ -78,3 +78,14 @@ services:
restart: "no"
expose:
- 1025
gulp:
build:
context: ./
dockerfile: Dockerfile.gulp
container_name: ${PROJECT_NAME}-gulp
entrypoint: gulp
restart: "no"
volumes:
- .:/usr/src/app/
- /usr/src/app/node_modules