Update Gulp
This commit is contained in:
parent
c6eb4a58fd
commit
9b88c22fbb
@ -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
|
||||||
|
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user