mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 05:57:48 +01:00
Use Alpine Linux instead of Debian
This commit is contained in:
parent
44f462a65b
commit
0cb96b12bb
1 changed files with 4 additions and 14 deletions
18
Dockerfile
18
Dockerfile
|
@ -4,28 +4,18 @@
|
||||||
## To run the image, run:
|
## To run the image, run:
|
||||||
## docker run -d -p 6003:6003 poketube
|
## docker run -d -p 6003:6003 poketube
|
||||||
|
|
||||||
# Base (Debian)
|
# Base (Alpine Linux)
|
||||||
FROM debian
|
FROM alpine
|
||||||
|
|
||||||
# Set Work Directory
|
# Set Work Directory
|
||||||
WORKDIR /poketube
|
WORKDIR /poketube
|
||||||
COPY . /poketube
|
COPY . /poketube
|
||||||
|
|
||||||
# Expose Ports
|
# Expose Default Ports
|
||||||
EXPOSE 6003
|
EXPOSE 6003
|
||||||
|
|
||||||
# Install Requirements
|
# Install Requirements
|
||||||
RUN apt-get update && apt-get -y install \
|
RUN apk add nodejs npm make g++ ca-certificates curl gnupg python3
|
||||||
libcurl4-openssl-dev make g++ ca-certificates curl gnupg
|
|
||||||
|
|
||||||
# Install NodeJS v18
|
|
||||||
RUN mkdir -p /etc/apt/keyrings
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
|
||||||
|
|
||||||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
|
||||||
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y install nodejs
|
|
||||||
|
|
||||||
# Install Packages
|
# Install Packages
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
Loading…
Reference in a new issue