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 WORKDIR /usr/src/app
# install software COPY package.json .
RUN apt update COPY gulpfile.js .
RUN apt -y upgrade
# dependencies
RUN apt install -y build-essential nodejs npm
# gulp RUN npm i --global gulp-cli
RUN npm install -g gulp-cli
# Add package.json
COPY package.json package.json
# dependencies gulp
RUN npm i RUN npm i
RUN npm cache clean --force
CMD gulp

View File

@ -78,3 +78,14 @@ services:
restart: "no" restart: "no"
expose: expose:
- 1025 - 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