go-crm initial
This commit is contained in:
26
apps/go-crm/Dockerfile
Normal file
26
apps/go-crm/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM archlinux:latest
|
||||
|
||||
RUN pacman -Syu --noconfirm && \
|
||||
pacman -S --noconfirm \
|
||||
go \
|
||||
git \
|
||||
sqlite \
|
||||
curl \
|
||||
&& pacman -Scc --noconfirm
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
RUN curl -sSL https://github.com/air-verse/air/releases/download/v1.27.10/air_1.27.10_linux_amd64.tar.gz | tar -xz && \
|
||||
chmod +x air && \
|
||||
mv air /usr/local/bin/air
|
||||
|
||||
WORKDIR /workspace/apps/go-crm
|
||||
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ["air"]
|
||||
Reference in New Issue
Block a user