Dockerfile now named correctly
Dockerfile is now named correctly, and pulls from the local repository/directory instead of pulling the image from github.
This commit is contained in:
parent
04153bef9f
commit
58590a56ea
3 changed files with 19 additions and 19 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:18-bullseye AS builder
|
||||
|
||||
WORKDIR /devel
|
||||
RUN apt-get update ; apt-get upgrade -y ; apt-get install -y build-essential
|
||||
COPY . .
|
||||
RUN npm i ; npm run build
|
||||
|
||||
FROM node:18-alpine
|
||||
|
||||
EXPOSE 8080
|
||||
WORKDIR /exec
|
||||
RUN apk add --update nodejs npm
|
||||
COPY --from=builder /devel/ .
|
||||
RUN adduser -D jankclient
|
||||
|
||||
USER jankclient
|
||||
|
||||
CMD ["npm", "start"]
|
|
@ -1,18 +0,0 @@
|
|||
From node:18-bullseye as builder
|
||||
|
||||
WORKDIR devel/
|
||||
RUN apt-get update ; apt-get upgrade -y ; apt-get install -y python-is-python3 build-essential git
|
||||
RUN git clone https://github.com/MathMan05/JankClient
|
||||
RUN cd JankClient ; npm i ; npm run build
|
||||
|
||||
From node:18-alpine
|
||||
|
||||
EXPOSE 8080
|
||||
WORKDIR exec
|
||||
RUN apk add --update git nodejs npm
|
||||
COPY --from=builder /devel/JankClient/ .
|
||||
RUN adduser -D jankclient
|
||||
|
||||
USER jankclient
|
||||
|
||||
CMD ["npm", "start"]
|
|
@ -2,7 +2,7 @@ services:
|
|||
jank:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile-jank
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue