Skip to content

Commit

Permalink
oo-front Dockerfile: use node:18 as base image
Browse files Browse the repository at this point in the history
  • Loading branch information
sffc committed Jul 22, 2023
1 parent c2cedfa commit f89f7a2
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions containers/oo-front/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,45 +20,9 @@
# BOILERPLATE #
###############

FROM ubuntu:jammy

FROM node:18
WORKDIR /root

# Disable all prompts when using apt-get
ENV DEBIAN_FRONTEND=noninteractive

# Core tmpfs directories:
VOLUME \
/run \
/tmp

# Essential setup
RUN \
mkdir -p /srv/oo && \
apt-get update && \
apt-get install -y \
curl \
ca-certificates \
openssl \
apt-transport-https \
gnupg \
supervisor

# NodeSource
RUN \
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
echo 'deb https://deb.nodesource.com/node_16.x jammy main' > /etc/apt/sources.list.d/nodesource.list && \
echo 'deb-src https://deb.nodesource.com/node_16.x jammy main' >> /etc/apt/sources.list.d/nodesource.list

####################
# MAIN BUILD RULES #
####################

RUN apt-get update && \
apt-get install --no-install-recommends -y \
nodejs \
git

# Install oo-front
# Note: paths are relative to repository root
RUN mkdir -p /srv/oo/projects
Expand Down

0 comments on commit f89f7a2

Please sign in to comment.