-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (44 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
55 lines (44 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Start from a base image
FROM ubuntu:20.04 as base
ARG SHELL="/usr/bin/bash"
ARG NODE_VERSION=20
## Set up other repositories
RUN apt-get update && \
apt-get install -y software-properties-common && \
## git-flow-avh
add-apt-repository -y ppa:git-core/ppa
# Install zsh, python, perl, nodejs, and .NET Core
RUN apt-get update && apt-get install -y \
curl wget gnupg2 lsb-release \
git git-flow
## Setup NodeJS via Volta
ENV PATH="/root/.volta/bin:$PATH"
ENV SHELL=${SHELL}
RUN curl https://get.volta.sh |bash
RUN volta install "node@$NODE_VERSION" && \
volta install pnpm && \
pnpm setup && \
. /root/.bashrc && \
pnpm add -g tailwindcss@latest postcss@latest
# Install .NET Core SDK
RUN wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
RUN dpkg -i packages-microsoft-prod.deb
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
dotnet-sdk-8.0
# Cleanup package manager
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/
# Set bash as the default shell
RUN chsh -s $(which bash)
FROM base as dev
ENV PROJECT_LOCATION=/workspace/SmartOrder
WORKDIR $PROJECT_LOCATION
COPY ./.devcontainer/bootstrap.sh /tmp/bootstrap.sh
RUN chmod +x /tmp/bootstrap.sh && /tmp/bootstrap.sh
VOLUME [\
"/workspaces/SmartOrder", \
"/workspaces/SmartOrderApi", \
"/workspaces/daemon-dotnet" \
]