Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Update. #46

Merged
merged 1 commit into from
Jun 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
# distro os.
FROM ubuntu:bionic

# mkdir users
LABEL maintainer="Takayuki Kamiyama <[email protected]>"

# build package
RUN apt-get update && apt-get install -y \
git ruby-dev sqlite3 libxslt1-dev libxml2-dev build-essential patch \
libsqlite3-dev libcurl4-openssl-dev curl nodejs && apt-get clean
libsqlite3-dev libcurl4-openssl-dev curl

# node.js
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 NODE_MAJOR=20 && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install nodejs -y
RUN apt-get clean

# npm install --global [npm|yarn]
RUN npm install -g npm@latest

# locale
RUN apt install -y language-pack-ja
Expand All @@ -17,7 +30,7 @@ RUN echo 'eval "export LANG"' >> ~/.bashrc
ENV RUBYOPT -EUTF-8

# ruby
FROM ruby:3.3.1
FROM ruby:3.3.2

# install
RUN git clone -b main https://github.com/takkii/nyasocom_oss.git
Expand All @@ -26,10 +39,3 @@ COPY . /nyasocom_oss
RUN bundle install

EXPOSE 9292

# All Docker remove command. Clean up all.
# docker system prune
# docker container prune
# docker image prune
# docker volume prune
# docker network prune
Loading